The Cancel button in the search bar does not work in iOS 7 when the search bar is initially hidden.
I follow this guide to create a search bar in tableview:
textbook on radiation therapy
There is an example project in this tutorial, it is better to use this project than my explanation :)
On iOS 5 and 6 it works fine. I reviewed all the delegates.
There are two possibilities. The first is to press the button when the panel is hidden, the second is to press the button when the panel is displayed (moving the table down using gestures that you can see in the search bar)
If the search bar is hidden, the cancel cancel button does not work, it does not call the calcel delegate method:
- (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar
Sorry, I can’t explain it better.
thanks
ios ios7 tableview uisearchbar
mjimcua
source share