cocos2d1.0.1 縦向きにする方法
2012年05月06日
cocos2d1.0.1 で画面を縦向きにする方法
RootViewControllerを開き下記の場所を修正する
デフォルトでは
return ( UIInterfaceOrientationIsLandscape( interfaceOrientation ) );
ですが ここを
return ( UIInterfaceOrientationIsPortrait( interfaceOrientation ) );
とする
#elif GAME_AUTOROTATION == kGameAutorotationUIViewController // // EAGLView will be rotated by the UIViewController // // Sample: Autorotate only in landscpe mode // // return YES for the supported orientations //横向き //return ( UIInterfaceOrientationIsLandscape( interfaceOrientation ) ); //縦向き return ( UIInterfaceOrientationIsPortrait( interfaceOrientation ) ); #else #error Unknown value in GAME_AUTOROTATION #endif // GAME_AUTOROTATION |
by at 14:37