Is it possible to customize UISearchBar which is inside UITableView, I want to remove Cancel button and put two other buttons instead of cancel.
Is it possible to customize UISearchBar which is inside UITableView, I want to remove
Share
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.
UISearchBar is not very customizable. You can see in its documentation the kinds of things which you can customize. You can hide the cancel button, but you can’t add your own arbitrary buttons.
You might want to replace it with a UITextField and your own buttons, which will give you lots of flexibility, but will require more work to re-implement the UISearchBar’s built-in behaviour.