Hi,
I've attempted to have my delegate respond to searchBarSearchButtonClicked, but it's not working.
It's probably because when I set the searchBar property of my tableModel to my searchBar outlet, STV is taking over delegate duties.
So that begs the question: How do you react to the Search button? I have the type-ahead working and the Cancel button works, but the Search button does nothing. Since the type-ahead has effectively already searched and hopefully found what you're looking for, the Search button should basically just resignFirstResponder and put the keyboard away. This is especially important if there are a lot of search results and you don't want to have to scroll through your table with the keyboard showing.
Further to that, is it possible to use the UISearchBarDisplayController instead of just a UISearchBar? I'd like to provide the same kind of type-ahead searching as done in the Contact app. In that case, the UINavigationBar is pushed up out of the way and the search bar goes in its place until you dismiss the keyboard.
I tried wiring up my SCTableViewModel to the UISearchBarDisplayController's searchBar instance, but SCT didn't pick up on that.
Thanks,
Brendan