我正在开发支持横向和纵向两种模式的应用程序,我的启动屏幕在iOS9之前是横向的,这是可以的,但iOS9启动屏幕正在以纵向模式启动
发布于 2016-10-12 11:12:08
我也遇到了同样的问题,我最终解决了它。
首先,从info.plist中删除键"Supported interface orientations“。
然后在info.plist中添加关键字"Initial interface orientation“。将键值设置为"Landscape (右主页按钮)“。
最后,添加到您的appDelegate.mm中。
-(NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{
return UIInterfaceOrientationMaskAll;
}发布于 2015-10-07 19:22:47
我猜,这是因为您没有为横向提供适当的启动图像。这可能会有帮助:https://stackoverflow.com/a/32642194/2799410
https://stackoverflow.com/questions/32990641
复制相似问题