cocos2d 2.0 横竖屏修改

在AppDelegate.m文件修改下面方法

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
   //竖屏
   return ( UIInterfaceOrientationIsPortrait( interfaceOrientation ) );

   //横屏
  return ( UIInterfaceOrientationIsLandscape( interfaceOrientation ) );
}
 

你可能感兴趣的:(code,cocosd)