RootViewController.mm
// Override to allow orientations other than the default portrait orientation.
// This method is deprecated on ios6
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
//return UIInterfaceOrientationIsLandscape(interfaceOrientation);
return UIInterfaceOrientationIsPortrait( interfaceOrientation );
}
// For ios6, use supportedInterfaceOrientations & shouldAutorotate instead
- (NSUInteger) supportedInterfaceOrientations{
#ifdef __IPHONE_6_0
//return UIInterfaceOrientationMaskLandscape;
return UIInterfaceOrientationMaskPortrait;
#endif
}
CCScene *pScene = HelpLayer::scene();
// 0.5秒かけてフェードアウトしながら次の画面に遷移します
CCTransitionFade* transition = CCTransitionFade::create(0.5f, pScene);
CCDirector::sharedDirector()->replaceScene(transition);