cocos2d轉(zhuǎn)為h5 cocos2djs怎么設(shè)置游戲界面在手機(jī)中是豎屏顯示?
cocos2djs怎么設(shè)置游戲界面在手機(jī)中是豎屏顯示?Coco2dx JS設(shè)置垂直屏幕顯示的一般方法RootViewController.mm在文件里,如果([[uidevice currentdev
cocos2djs怎么設(shè)置游戲界面在手機(jī)中是豎屏顯示?
Coco2dx JS設(shè)置垂直屏幕顯示的一般方法RootViewController.mm在文件里,如果([[uidevice currentdevice]響應(yīng)選擇器:@selector(setOrientation:)]){ [[UIDevice currentDevice]性能選擇器:@selector(setorientation:)t with object:(ID)uiinterfaceorientationportal]t}t//判斷不能自己切換應(yīng)該自動旋轉(zhuǎn){t返回no}//一定要返回no