UIPopoverController, how to change the size of it?

Vladimir Stazhilov picture Vladimir Stazhilov · Aug 31, 2011 · Viewed 10.9k times · Source

I've got UIPopoverController in my Split-View application, I just need to make popover longer. In viewDidLoad of DetatilViewController I put:

self.popoverController.popoverContentSize=CGSizeMake(320, 1400);

Nothing happens( when should I put this? thanks

Done with that ^^^ How can I set background for Popover? thaanks

Answer

Mobile Developer picture Mobile Developer · Aug 31, 2011

From iOS 7:

popoverView.contentViewController.preferredContentSize =  CGSizeMake(320, 1400);