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