I have a popover containing a UINavigationController. I can display popover fine and it contains navController just fine. NavController contains a tableView, and when I select an item, it creates a new detailed view:
DeviceDetailViewController *detailViewController = [[[DeviceDetailViewController alloc] initWithNibName:@"DeviceDetailViewController" bundle:nil] autorelease];
Then I click on the new view controller:
[self.navigationController pushViewController:detailViewController animated:YES]
This is when a problem arises: after clicking on a new view, popover resizes to the maximum height available on the iPad.
I tried to set the height of all the views in xib to a fixed height, not flexibility. I tried to explicitly set the height of the popover. I also tried using different view controllers as a child view. The problem remains: popover wants to automatically resize to maximum height whenever a new view is transferred to the navigation controller.
Here's a question that discusses trying to intentionally control the size of a popover when clicking new views:
I thought this could be a brute force method for controlling size. Oddly enough, however, this actually causes some quick graphic quirks (as if the view was recently animated) and then continuing to resize as described above.
In other words, something literally forces the popover to reach its maximum height, and it seems to happen after calling all the delegate methods.
Is this a navigation controller? Has anyone seen such things?
uinavigationcontroller uipopovercontroller
SG1 Aug 11 '10 at 13:25 2010-08-11 13:25
source share