0

I have a popover in an app and it doesn't resize to what I set. I found this but it still doesn't work in iOS 5.1. I switched to the ios 5.0 simulator and it worked again. Am I missing something?

EDIT

In viewDidLoad:

self.contentSizeForViewInPopover = CGSizeMake(320.0, 137.0);

In viewDidAppear:

self.popoverController.popoverContentSize = CGSizeMake(320.0, 137.0);
Community
  • 1
  • 1
Chris McKnight
  • 8,540
  • 4
  • 29
  • 31

1 Answers1

0

Looks like it has to be a "bug" or a change in iOS 5.1. Apple's sample code does not do a popover in a splitview. I have disabled the swipe gesture though by calling setPresentsWithGesture on the splitViewController. It is annoying swiping and having the master view come up.

Chris McKnight
  • 8,540
  • 4
  • 29
  • 31