modal view switching iphone to portrait and not when it goes back

Discussion in 'iOS Programming' started by Chirone, Feb 10, 2010.

  1. Chirone macrumors 6502

    Joined:
    Mar 2, 2009
    Location:
    NZ
    #1
    my app is in landscape, when i call presentModalViewController:animated: the device switches to portrait and doesn't switch back

    is it possible to present a modal view in landscape and keep the device in landscape mode?
     
  2. North Bronson macrumors 6502

    Joined:
    Oct 31, 2007
    Location:
    San José
    #2
    What class of View Controller are you presenting modally? Is that class designed to display in landscape mode?
     
  3. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #3
    Also make sure the view controller for the modal view has it's shouldAutorotateToInterfaceOrientation: set correctly.
     
  4. Chirone thread starter macrumors 6502

    Joined:
    Mar 2, 2009
    Location:
    NZ
    #4
    yeah, woops, only did that once in one view controller unrelated to it....

    slightly embarrassing....
     

Share This Page