更多 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;
}
总结以上是内存溢出为你收集整理的cocos2d-js game center 闪退全部内容,希望文章能够帮你解决cocos2d-js game center 闪退所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)