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
From iOS 7:
popoverView.contentViewController.preferredContentSize = CGSizeMake(320, 1400);
Set contentSizeForViewInPopover
property of UIPopOverController
popView.contentViewController.preferredContentSize = Your Size
This works on iOS 8 but will crash or have no effect on lesser versions
Hope the answer :)
Try overriding -(CGSize)contentSizeForViewInPopover
in your view controller, and return the size you want your view controller to be.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With