cocos2d转为h5 cocos2djs怎么设置游戏界面在手机中是竖屏显示?
cocos2djs怎么设置游戏界面在手机中是竖屏显示?Coco2dx JS设置垂直屏幕显示的一般方法RootViewController.mm在文件里,如果([[uidevice currentdev
cocos2djs怎么设置游戏界面在手机中是竖屏显示?
Coco2dx JS设置垂直屏幕显示的一般方法RootViewController.mm在文件里,如果([[uidevice currentdevice]响应选择器:@selector(setOrientation:)]){ [[UIDevice currentDevice]性能选择器:@selector(setorientation:)t with object:(ID)uiinterfaceorientationportal]t}t//判断不能自己切换应该自动旋转{t返回no}//一定要返回no