开发者

Highlight the search button in key board in blue when typing in it in iphone sdk

How to make the search b开发者_运维知识库utton in the key board as blue back ground when a user enter the text into the search box.In iphone for search functionality search button in the key board is becoming blue. How to implement this functionality. I think it is possible to do but i don't know... Please help me.

Thank you, Madan mohan


Open your xib file in interface builder, then click on your attribute inspector (command-1). Then change this setting:

Highlight the search button in key board in blue when typing in it in iphone sdk

Now that I re-read your question maybe you were asking how to implement that search functionality programatically... Is that the case?

EDIT: Ok, if you want to do it programatically then you need to implement UITextInputTraits. Check this documentation out: http://developer.apple.com/library/ios/#documentation/uikit/reference/UITextInputTraits_Protocol/Reference/UITextInputTraits.html

I think it's going to be a straight-forward copy from the screenshot that I provided.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜