1

Please don't mark my question as duplicate, I knew there are lots of answer which is similar to my question but I am not satisfied with their answer.

I need to disable the search button of UISearchBar until user type at least 3 characters. From all of the answer in stackoverflow most are recommending to implement - (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar.

But this is not my requirement. I need exactly same that apple do when we not enter any character.

Tapas Pal
  • 7,073
  • 8
  • 39
  • 86
  • It is what's being asked here: http://stackoverflow.com/questions/9721668/how-can-i-disable-enable-uisearchbar-keyboards-search-button/. The answer is unsatisfying, because it says you can't do it, but it is the same question and I think we're stuck with the same, sad, answer (plagiarized below for your convenience). – danh Jan 05 '15 at 17:46
  • @danh the link you have provided I am currently doing this.. but it's just stop to search but the UISearchBar search key still highlighted. How user will understand that they have to enter more text to search. – Tapas Pal Jan 05 '15 at 18:44
  • I don't know who added `This question may already have an answer here:` to him/her those answers doesn't fulfil my requirement. I have to disable the search button until it's satisfy the search criteria. – Tapas Pal Jan 05 '15 at 18:49

0 Answers0