UISearchBar: enable search button by default

Hi all,

by default the search button in the keyboard for a UISearchBar is disabled. The button is enabled after typing a single character. So when no characters are typed there is no way to dismiss the keyboard when not using a cancel button. Is there a way to enable the search button even when no characters are typed. I know I could use a cancel button on the searchbar but I don't really think this button is a great design. The App Store on the iPhone seems to have enabled the search button be default, but I can't seem to find the property to set on a UISearchBar to copy this behavior.

Message was edited by: Joris Kluivers (typos)

PowerBook, Mac Mini, Mac OS X (10.5.5)

Posted on Sep 24, 2008 12:13 PM

Reply
1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

UISearchBar: enable search button by default

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.