interface orientation problem with UIImagePicker in iOS 6

Discussion in 'iOS Programming' started by straber, Sep 23, 2012.

  1. macrumors member

    Joined:
    Jul 3, 2012
    #1
    I have an iPad app that only runs in landscape mode, and since updating to iOS 6 it always crashes when I try to display an ImagePicker.

    I've added the new method:

    Code:
    - (NSUInteger)supportedInterfaceOrientations {
        return UIInterfaceOrientationMaskLandscape;
    }
    but it still crashes with the error:

    'Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES'

    Does anyone know what I'm missing here?

    Thanks in advance.
     
  2. macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #2
    Everywhere where you are doing the shouldAutoRotation, you should return NO.
    The MASK in APpdelegate will take care of the rest ^_-
     

Share This Page