Sunday 23 September 2012

shouldAutorotateToInterfaceOrientation and iOS 6

Don't use shouldAutorotateToInterfaceOrientation to specify the device orientations you want to support for your UIViewController. While it was working in iOS versions prior to 6, it is deprecated and you will be unpleasantly surprised because the method actually never gets called in iOS 6.

Use supportedInterfaceOrientations instead.