scrollview, navigation controller problem
I'm implementing a navigation controller, and I'm having an issue with popping back to the root view from a table view:
Root View: This is a simple UIViewController subclass. It has a scrollview that is 320x100 (takes up width of iPhone display). In the scrollview I have three subviews that are 320x100, so the user can scroll between the three subviews that are within the scrollview. Also, there is a button (not in the scrollview) to push a UITableViewController into view.
I push the tableView:
[self.navigationController pushViewController:myTableViewController animated:YES];
The problem I'm having is that if I'm in the tableView, and I pop the controller (either using the back button in navbar, or popViewControllerAnimated:YES]), one of the views in the scrollview in my root view becomes suddenly visible an instance before the tableView is actually popped and the root view is animated into view.
From the tableView, I'm popping the controller:
[self.navigationController popViewControllerAnimated:YES];
Any help is greatly appreciated !
|