I have a UIPopoverController with a navigationController and a bunch of subviews. The size of the popover is set before it is displayed as follows:
[self.myPopover setPopoverContentSize:CGSizeMake(320, 500)]
It works great. Popcord is displayed with the set size. When another view is pushed onto the navigation stack, the popover size is set again - different heights are required - in viewWillAppear mode:
self.contentSizeForViewInPopover = CGSizeMake(320, 700);
This also works great. When I return to the previous view, the size will not change.
I added the same call to viewWillAppear in the first view, but the view does not change.
How can I control resize popover while navigating between views?
source
share