Compiling my iPad app against the 5.1 SDK (release version) causes UIPopoverController to show itself using the new "slide in" from the left presentation. This completely breaks my popover presentation, which relied on having a "black" style header and a certain height. I've tried setting
NO, but that only seems to disable the swipe gesture, and doesn't stop the presentation style.
This same app, without being recompiled, but running on iOS 5.1, uses the old popover presentation style. So I know iOS 5.1 still supports the backwards-compatible method. How can I choose to activate the old presentation of the popover?
This is really critical to my app, unfortunately.
Failing that, is there any way to get the "black" style header on the new popovers?
Although I have a UISplitViewController in my app, it is not responsible for showing the popover. Instead, I'm using this code:
[self.popoverController presentPopoverFromRect:ipadButtonMenu.frame inView:self.view permittedArrowDirections:UIPopoverArrowDirectionUp animated:YES];
This question is a cross-post from the Apple Developer Forums here. I'm hoping somebody has the answer.
Presentation after compiling under iOS 5.1 SDK:
This change seems poorly thought out. Sure guys, we break anything in the detail view that uses a swipe. Awesome!
To answer your 'bring back the black' question, if it's merely a question of the top navbar color, you could use the appearance proxy. For example:
[[UINavigationBar appearance] setTintColor:[UIColor blackColor]];
The appearance proxy can be set very specifically if necessary; it has a containers model. There's a very good WWDC video on it.
With respect to just reverting to the old behavior with the new compiler, frankly, I'd love to know as well. The new behavior also breaks action sheets in the master view; previously, when the master view was presented in a popover, they'd do the right thing. Now, it's an assertion failure.