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)
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)