Support for iOS6 auto rotation.