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

LastLine

macrumors 65816
Original poster
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];
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.