Possible Duplicate:
How can I disable/enable UISearchBar keyboard's Search button?
Can we disable the 'Search' button in the keyboard for a search bar? I want to enable it after user enters 3 characters in the search bar.
Possible Duplicate:
How can I disable/enable UISearchBar keyboard's Search button?
Can we disable the 'Search' button in the keyboard for a search bar? I want to enable it after user enters 3 characters in the search bar.
Apparently, you can't do that. You need to implement UISearchBar's delegate
You can just add a condition in your delegate like: