I have a UIPopover
being display
I think you were close if you tried keeping a reference to the popoverController and used setPopoverContentSize:animated:
What works for me is this combination of setPopoverContentSize:animated:
AND contentSizeForViewInPopover
in that specific order, for each controller your put on the stack:
-(void)viewDidAppear:(BOOL)animated
{
[self.popoverController setPopoverContentSize:whateverSize animated:true];
self.contentSizeForViewInPopover = whateverSize;
[super viewDidAppear:animated];
}
In this case, self.popoverController is a reference I keep in each controllers that is pushed on the stack, it would probably be cleaner to use a singleton variable for that.