Video automatic in Landscape ?!

Discussion in 'iOS Programming' started by B-ram, Nov 10, 2010.

  1. B-ram macrumors newbie

    Joined:
    Nov 3, 2010
    Location:
    Zaandam, Zaanstad, Nederland
    #1
    Hi guys,

    i used this code to set my movie in landscape.


    Code:
    -(BOOL)shouldAutorotateToSecondInterfaceOrientation:(UIInterfaceOrientation)toSecondInterfaceOrientation
    {
    	return UIInterfaceOrientationIsLandscape(toSecondInterfaceOrientation);
    	
    	
    }
    But you have to turn the device first. It isn't automatically landscaped.
    And when i press the Done button my view stay's in landscape. But i need it in Portrait can somebody help me to fix this?

    i hope.

    Thanks

    Bram
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    Where are you getting shouldAutorotateToSecondInterfaceOrientation: from? That's not a instance method of any built-in class.
     

Share This Page