Problem when exiting search in iPhone
Posted
by camilo
on Stack Overflow
See other posts from Stack Overflow
or by camilo
Published on 2010-04-05T21:11:50Z
Indexed on
2010/04/05
21:13 UTC
Read the original article
Hit count: 164
Hi.
I have a search display controller, and it is searching well.
I'm searching in a table with several sections and I have a viewForHeaderInSection function working as it's supposed to. When I start searching, my numberOfSectionsForTableView returns 1, and I have a special view saying "Search Results" wich I use in self.searchDisplayController.searchResultsTableView.
The problem happens when I select a row in my searchResultsTableView: I change the view, and when I return and try to exit the searchDisplayController (by pressing the CancelButton), the tables change nice, but changing the viewforHeader for my first section is not "pretty". I have a "kind-of-click" anymation. I would like it to not be so noticeable for the user, having a more "fluid" change. Anybody had the same problem and knows how to solve it?
In a different question (which would work as a workaround): how can I hide the keyboard while searching without pressing the Cancel or Search buttons?
Thanks a lot!
© Stack Overflow or respective owner