cocos2d-js game center 闪退

前端之家收集整理的这篇文章主要介绍了cocos2d-js game center 闪退前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

更多 0

ios6.0 ios6.1启动后崩溃 Supported orientations has no common orientation with the application,and shouldAutorotate is returning YES 这是因为在项目的设置界面中设置了iphone的屏幕为垂直,但是在 MyNavigationController的 supportedInterfaceOrientations shouldAutorotateToInterfaceOrientation 两个函数里面返回的却是横屏导致的。


- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {

/*

if (ConfigParser::getInstance()->isLanscape()) {

return UIInterfaceOrientationIsLandscape( interfaceOrientation );

}else{

return UIInterfaceOrientationIsPortrait( interfaceOrientation );

}

*/

return UIInterfaceOrientationIsPortrait( interfaceOrientation );

}


// For ios6,use supportedInterfaceOrientations & shouldAutorotate instead

- (NSUInteger) supportedInterfaceOrientations{

/*

#ifdef __IPHONE_6_0

if (ConfigParser::getInstance()->isLanscape()) {

return UIInterfaceOrientationMaskLandscape;

}else{

return UIInterfaceOrientationMaskPortraitUpsideDown;

}

#endif

*/

return UIInterfaceOrientationMaskPortrait;

}

原文链接:https://www.f2er.com/cocos2dx/343551.html

猜你在找的Cocos2d-x相关文章