iPhone UISearchDisplayController how to handle memory warning
iPhone UISearchDisplayController how to handle memory warning
- Subject: iPhone UISearchDisplayController how to handle memory warning
- From: Donald Largen <email@hidden>
- Date: Sat, 01 Jan 2011 10:36:01 -0600
Here is my situation. I have UIViewController, call it ViewControllerA, that contains an UITableView and UISearchDisplayController. ViewControllerA is the root view controller in a UINavigationController. Things seem to work OK, that is I can preform a search, display the results, and select a row and push a detail view controller onto the stack, call it ViewControllerB.
The problem I am having is when ViewControllerB is displayed I am getting a memory warning. When I navigate back to ViewControllerA the UISearchDisplayController did something in response to the memory warning. The search bar is gone, the search results table view is gone, the navigation bar is gone, and the "source table view" is displayed but has been scrolled to the top of the screen.
I am thinking I need to handle this memory warning by recreating the UISearchDisplayController but I am not sure. I have a feeling though I am not doing something right in my setup of the UISearchDisplayController.
Thanks
Donald
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden