sammcewan / WYPopoverController

WYPopoverController is for the presentation of content in popover on iPhone / iPad devices. Very customizable.
Other
252 stars 74 forks source link

Resizing popover for different view controllers in the navigation stack? #66

Closed JulesMoorhouse closed 9 years ago

JulesMoorhouse commented 9 years ago

My first view controller is quite small and has two rows in a table view. Later views in the navigation stack are much taller.

I don't want make the first one so big, I'd rather resize the popover as required.

I've tried setting preferredContentSize in viewWill appear and just before viewcontroller is added to the navigation stack. However it doesn't resize, until the next view controller is added to the navigation controller, I'm not sure why.

Can you tell me how to acheive this, or tell me it's not possible and that I'd have to set the popover at the larger size at the start?

Seeing as it does increase in height I expect it is possible, I'm just not sure where / how.

Thanks in advance.

Great job keeping this controller going :)