[iOS] How to protect view autoresize in UIPopoverController

I tried to add UINavigationController in UIPopoverController.
The navigationController has UITableView.
When the tableView cell was selected, pushed more tableView to navigationController.
But popover automatically resizing to max height.

I googled this problem.
I found this page.
UIPopoverController automatically resizing to max height on pushViewController

Just one !

And I solved the problem.

Each TableView must set the property named contentSizeForViewInPopover.
I set the property in viewDidLoad.
And fixed it.

Tags: ,

Comments are closed.