Support for iOS6/7 auto rotation.