views:

33

answers:

1

I have a search functionality using UISearchBar that occurs on-the-fly, so I think it would be more obvious to replace that "Search" button on the keyboard with "Done".

Is there a way to do that?

thanks

+1  A: 

You can change the keyboardType property of your UISearchBar object. However, there is not a way to change the returnKeyType directly. You may be able to filter down and change it manually. Check the documentation for UISearchBar and see if you can find returnKeyType as that is what you are looking for.

Jason McCreary
thanks, but unfortunately the search bar doesn't have this property... :(
Digital Robot