[]ios屏幕方向有误
supportedInterfaceOrientations获得的值会变
打印情况如下
supportedInterfaceOrientations:24
supportedInterfaceOrientations:24
supportedInterfaceOrientations:24
supportedInterfaceOrientations:24
supportedInterfaceOrientations:24
supportedInterfaceOrientations:24
supportedInterfaceOrientations:24
supportedInterfaceOrientations:24
supportedInterfaceOrientations:24
supportedInterfaceOrientations:24
supportedInterfaceOrientations:24
supportedInterfaceOrientations:8
supportedInterfaceOrientations:8
supportedInterfaceOrientations:8
supportedInterfaceOrientations:8
打印情况如下
supportedInterfaceOrientations:24
supportedInterfaceOrientations:24
supportedInterfaceOrientations:24
supportedInterfaceOrientations:24
supportedInterfaceOrientations:24
supportedInterfaceOrientations:24
supportedInterfaceOrientations:24
supportedInterfaceOrientations:24
supportedInterfaceOrientations:24
supportedInterfaceOrientations:24
supportedInterfaceOrientations:24
supportedInterfaceOrientations:8
supportedInterfaceOrientations:8
supportedInterfaceOrientations:8
supportedInterfaceOrientations:8
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
187*****279
赞同来自:
index.html
<meta name="laya" screenorientation ="landscape"/>
config.ini
orientation=24
ios工程设置
勾选Landscape Left 和 Landscape Right
laya ide版本1.7.16
native 版本0.9.14
问题2:
横屏情况下,不管怎么设置,第一次加载后的home健都在屏幕右侧
打开应用前,如果home健在屏幕左侧,加载后游戏画面就是颠倒的,不会自动旋转
必须手工旋转下手机,之后才会根据当前的屏幕方向自动旋转游戏