导航

cocos2d中设置屏幕方向

Posted on 2011-11-30 21:36  吼吼睡  阅读(434)  评论(0编辑  收藏  举报

 

 

在ApplicationDelegate.m中:

//如果想横屏的话(默认)

return ( UIInterfaceOrientationIsLandscape( interfaceOrientation ) );


//如果想竖屏的话

return (UIInterfaceOrientationIsPortrait(interfaceOrientation));