Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

LastLine

macrumors 65816
Original poster
Aug 24, 2005
1,313
21
Hey all,

I've been reworking and optimizing for iOS 7, and things are going (relatively) smoothly.

I have however come across one reasonably major problem. I have a popover view that in iOS 6 and prior appears in a landscape format (pulled from a nib)

However in iOS 7 it's started forcing a portrait display of the popover.

The code is below, I'm hoping it might be a relatively 'Doh!' moment, anyone able to advise?

Code:
       saveLoadScifi *sLoad = [[saveLoadScifi alloc] init];

        UIPopoverController *pop = [[UIPopoverController alloc] initWithContentViewController:sLoad];

        [pop setDelegate:self];


        CGRect popoverRect = [self.view convertRect:[sender frame]

                                           fromView:[sender superview]];

        [pop presentPopoverFromRect:popoverRect inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];

        sLoad.tapView = self;

        [sLoad release];
 

ArtOfWarfare

macrumors G3
Nov 26, 2007
9,560
6,059
iOS 7 is currently covered by NDA. If you'd like to discuss it, you may do so only at devforums.apple.com
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.