auto rotate with no animation

Discussion in 'iOS Programming' started by must, Dec 5, 2010.

  1. must macrumors newbie

    Apr 9, 2010
    hey, I'm currently working on developing an iPhone game and to start the project I set up a navigation controller through witch the user would be able to transition from the home screen to levels screen and finally to the OpenGL view.

    The thing is I want to support landscape rotation with left and right home button, to enable this I did the obvious which is to implement shouldAutorotateToInterfaceOrientation: ... the problem is that I don't want the rotation to be animated so I searched the developer documentation and google for an answer but with no luck.

    So what I need is a way to prevent the auto rotation from being animated or another way to rotate the view controllers.

    Thanks in advance.
  2. robbieduncan Moderator emeritus


    Jul 24, 2002
    Return NO from the should rotate method and just set a transform on the view.

Share This Page