UIPopoverPresentationController dynamic height

I have a view controller whos view will be changing as the user interacts with it, how can I get the presentation popover controller to resize based on its contents? I have set the view controllers prefered content size so that when it is displayed in the popover, there is no "white" space, however, when teh size of the content view changes, the popover does not change size. Any ideas as to how I can acheive this?


Thanks!

Hi Slew,


It's my understanding that UIPopoverPresentationController respects the preferredContentSizeof its presented view controller. You should be able to adjust this value as needed (after presenting the popover) and have the popover resize.

>, however, when teh size of the content view changes, the popover does not change size.

Show your code for reloading/refreshing the view when that happens.

UIPopoverPresentationController dynamic height
 
 
Q