The shouldAutorotateToInterfaceOrientation: method of UIViewController is deprecated. In its place, you should use the supportedInterfaceOrientations and shouldAutorotate methods.
iOS6 has three new method to handle orientation
// what we support - (NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskAllButUpsideDown; } // should autorotate or not - (BOOL) shouldAutorotate { return YES; } //initial orientation we want to have - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation { return UIInterfaceOrientationPortrait; }But where should we write those methods?