Cocos2d's Tips
画面を縦向きにする
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return UIInterfaceOrientationIsLandscape(interfaceOrientation);
}
UIInterfaceOrientationIsLandscape
をUIInterfaceOrientationIsPortrait
に変更
return UIInterfaceOrientationIsPortrait(interfaceOrientation);