1

I have an UIViewController that is presented as a popover. I set preferredContentSize in viewDidLoad and it works well. I would like to add elements to the popover dynamically and i am looking for a way to resize the whole popover. I tried resetting preferredContentSize but it does not seem to have any effect after at this point. Is there a way to resize the popover dynamically?


I looked at the solutions suggested in the comments, but they require the use of contentSizeForViewInPopover, which is deprecated since ios 7

Erik Sapir
  • 23,209
  • 28
  • 81
  • 141

0 Answers0