Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Perform segue from inside a popover

I want to replace the contents of a popover without dismissing the popover

my probelm is, if i use UINavigationViewController as the root of the popover inner view controller, the next view controller that I display, takes up the whole size of the screen minus the margins i gave it.

I want the next contents in the popover to be the same size as the original

How can I do that?

like image 207
Lena Bru Avatar asked Nov 28 '25 18:11

Lena Bru


1 Answers

Try setting self.contentSizeForViewInPopover = sizeOfThePopover; for the view controller you want to add to popover. Or you can use self.preferredContentSize = sizeOfThePopover; available from iOS7

like image 79
Yatheesha Avatar answered Dec 01 '25 21:12

Yatheesha