Friday, 4 March 2011

Tutorial: iPad Should Rotate

The iPad is a wonderful device. It's really magic. Even if you dislike (or hate) Apple, you must admit it's a very funny gizmo.
My first iPad App was refused because iPad Guidelines are a bit different than iPhone's ones. iPad hasn't got a right way to be picked on, so you must manage rotations.
Well, if your App requires just a "portait" view (as mine), you have just to add this code to every ViewController in your app

- (BOOL) shouldAutorotateToInterfaceOrientation:
        return UIInterfaceOrientationIsPortait(interfaceOrientation);
Post a Comment