Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you set the content size of a UIPopoverController?

Tags:

iphone

ipad

I'm showing a view in a popover. When I click a button in this view, another view will be pushed into the popover using a navigation controller. While pushing, the height of the popover gets extended. How do I retain the same popover height?

like image 915
iphony Avatar asked Jul 27 '10 13:07

iphony


1 Answers

In all your view controllers, override -contentSizeForViewInPopover and return the same size in all of them.

like image 121
Ole Begemann Avatar answered Sep 21 '22 01:09

Ole Begemann