iOS 7 UIPopover Behaviour Help

Discussion in 'iOS Programming' started by LastLine, Jun 29, 2013.

  1. LastLine macrumors 65816

    Aug 24, 2005
    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?

           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];
  2. ArtOfWarfare macrumors G3


    Nov 26, 2007
    iOS 7 is currently covered by NDA. If you'd like to discuss it, you may do so only at

Share This Page