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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can change the
keyboardTypeproperty of your UISearchBar object. However, there is not a way to change thereturnKeyTypedirectly. You may be able to filter down and change it manually. Check the documentation for UISearchBar and see if you can findreturnKeyTypeas that is what you are looking for.