creator-2.2.1-ios屏幕方向bug

Cocos Creator v2.2.1-rc.9 最终测试版发布帖 继续讨论:

这个问题我也遇到了,2.2.0,没这个问题,很蛋疼
初始化勾选3个方向支持,Portrait,Landscape Left,Lanscape Right
启动后,显示错误,若不够炫protait,一切正常,蛋碎

最后我就直接没有勾选 protait 了。

if( [RotateNavigationController IsLandscapePortrait] )
{
width = bounds.size.width < bounds.size.height ? bounds.size.width : bounds.size.height;
height = bounds.size.width < bounds.size.height ? bounds.size.height : bounds.size.width;
}
else
{
width = bounds.size.width < bounds.size.height ? bounds.size.height : bounds.size.width;
height = bounds.size.width < bounds.size.height ? bounds.size.width : bounds.size.height;
}

// cocos2d application instance
app = new AppDelegate( width * scale, height * scale );
app->setMultitouch(true);

我自己加了,判断,提前判断传入的w和h,来解决了,以前220没这个问题,很蛋疼。

我验证下,没问题就进行修复。

ths,好像helloworld就能重现,

我试过,在iphone7下,如果手机是竖屏,启动后游戏就是竖屏分辨率,如果手机是横屏,游戏启动后就是横屏,我们横屏游戏,也就是需要手机在横屏模式下启动游戏,就是正常的,如果手机当前是竖屏,就会出现显示错误。。。。。估计转换有问题

[23268] Error: Error: ipc timeout. message: package-asset:query-depend-asset, session: scene@renderer:1004
at Object.Editor.Scene.callSceneScript [as callback] (C:\CocosCreator_2.0.10\resources\app.asar\editor\builtin\package-asset\panel\export\index.js:1:1750)
at T.setTimeout (C:\CocosCreator_2.0.10\resources\app.asar\editor-framework\lib\renderer\ipc.js:1:594
顺便在提一个bug,在2.0.10以上的版本,导出都报这个错误、

干掉其他子游戏,导出又正常了,估计是文件数量太多,引起报错了吧,

我干掉一些子游戏的文件夹就能导出了

关注。。。。

mark

我们测试了 2.2.1 的这个问题,测试结果是正常的。

虽然说是正常,但是确实有人和我反应了同样的问题。在220下项目启动是好的,在221下项目启动场景显示确实是乱了,如果不加我上面贴的代码来判定下分辨率传入的宽高的话,不会正常,我也不知道如何描述!~~