How do I get my UIPopoverController to animate its size when its contained UINavigationController pushes a new controller?
I have a UIPopover being displayed from a UIBarButtonItem in my iPad app. It contains a UINavigationViewController, which has a sort of settings window as its root view controller. The settings window is a subclass of UITableViewController (style set to grouped), and tapping any of its cells pushes different "chooser" view controllers on the nav controller that are also subclasses of UITableViewController.
For each of the chooser views, in viewDidAppear, I'm setting contentSizeForViewInPopover appropriately:
self.contentSizeForViewInPopover = CGSizeMake(320, self.items.count * 44);
But it doesn't animate the change; when the navigation animation finishes, the popover snaps to the new height (width never changes from 320). Navigating backward animates the size change (accomplished with the technique from this answer), but forward never does.
I've tried obtaining a reference to the popover it's in and using setPopoverContentSize:animated: but it doesn't work. I've looked at other questions to no avail.
How do I get it to always animate the size change properly?
Update: I've set up a simple test project to try this out. It's a tab bar application for iPad set up in Xcode. I added a tab bar item to the navigation bar in one of the view controllers. When that button is pressed, the controller presents a popover that contains a navigation controller that has a very simple UITableViewController subclass