所以我有一个基于LandscapeRight LandscapeLeft的应用程序。
问题是iPad和iPhone 5s上的设备旋转会立即旋转而不会动画。 (iOS 9) 在我的旧设备iPhone4S(iOS 7)上,动画正常翻转。
我已经使用我项目的精简版进行了测试,但仍然无法解决。
以下是我设置应用堆栈的方法:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[super applicationDidFinishLaunching:application];
self.navigationController = [[[UINavigationController alloc] init] autorelease];
[self.window setRootViewController:self.navigationController];
UIStoryboard * storyboard = [UIStoryboard storyboardWithName:@"Storyboard" bundle:nil];
[self.navigationController pushViewController:[storyboard instantiateInitialViewController] animated:YES];
[self.navigationController setNavigationBarHidden:YES];
}
#ifdef __IPHONE_6_0
-(NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window {
return UIInterfaceOrientationMaskLandscape;
}
- (NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskLandscape;
}
#endif
知道是什么原因引起的吗? 我没有旋转命令的重载函数,至少在我的测试视图控制器中它仍在发生。
这可能只是iOS 9的新功能吗?如果是的话,文件在哪里?任何人都有最近发布的iOS 9.0应用程序在AppStore上轮换链接?