xcode6+ios8 横屏下启动画面不显示问题修改

本文转载自汉果博客 » xcode6+ios8 横屏下启动画面不显示问题修改

最近我做游戏 发现xcode6+ios8 横屏下启动画面不显示   显示黑屏 。

设置横屏后 设置catalog 添加使用的图片。在iphone6plus 下是横屏 显示启动画面  在 其他iphone设备是不显示启动画面的 。ipad也显示启动画面。只有iphone有问题 。

最后有人指导,我记录下 。

1、如果你的游戏支持横屏 切iphone ipad 都支持 则启动图片你要准备 横竖 所有尺寸的图片。
2、在info.plist启动方式用两个 或者三个,竖屏第一个,横屏二个
3、在程序里设置在RootViewController里修改为 return UIInterfaceOrientationMaskLandscape;

  

- (NSUInteger) supportedInterfaceOrientations{
#ifdef __IPHONE_6_0
return UIInterfaceOrientationMaskLandscape;
#endif
}

4、AppController.mm中 [window makeKeyAndVisible]; 这句代码 放在以下代码的前面

if ( [[UIDevice currentDevice].systemVersion floatValue] < 6.0)
{
// warning: addSubView doesn't work on iOS6
[window addSubview: viewController.view];
}
else
{
// use this method on ios6
[window setRootViewController:viewController];
}

5、我的平台是xcode6 + cocos2dx3.1 测试了8.0的模拟器
原文地址:https://www.cnblogs.com/Lucas4J/p/4116273.html