I have a SplitViewController based application. It uses rootViewController inside popoverController. RootViewController sets popover height by specifying (in viewDidLoad)
self.contentSizeForViewInPopover = CGSizeMake(320.0, 573.0);
When you select a row in the root controller, it pushes the secondViewController. SecondViewController makes a popover above by specifying (in viewDidLoad):
self.contentSizeForViewInPopover = CGSizeMake(320.0, 900.0);
When the user clicks on the "Back" button to pop up the second control controller, the height of the pop-up window remains higher. I would like to adjust the height back to the original size. I tried setting the contentSizeForViewInPopover in viewWillAppear, as well as in the delegation methods of navigationController willShowViewController. But it had no effect.
source share