iOS 7 UIPopover Behaviour Help

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

  1. LastLine macrumors 65816

    Joined:
    Aug 24, 2005
    #1
    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];
    
     
  2. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #2
    iOS 7 is currently covered by NDA. If you'd like to discuss it, you may do so only at devforums.apple.com
     

Share This Page