Vladimir Stazhilov Vladimir Stazhilov - 1 year ago 91
Objective-C Question

UIPopoverController, how to change the size of it?

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 Source

From iOS 7:

popoverView.contentViewController.preferredContentSize =  CGSizeMake(320, 1400);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download