Sim*_*mon 10 hidden uinavigationbar cocos2d-iphone ios7 xcode5
我的应用程序是用的cocos2D 2.1,我正在使用Xcode 5.编译后,UINavigationBar我的应用程序出现在顶部.
它怎么能被隐藏?我尝试过其他通用的iOS 7代码,它们似乎适用于原生iOS 7应用程序:
// None of the following works
navController_ = [[UINavigationController alloc] initWithRootViewController:director_];
navController_.navigationBarHidden = YES;
navController_.edgesForExtendedLayout = UIRectEdgeNone;
[navController_.navigationBar setTranslucent:NO];
if ([[CCDirector sharedDirector] respondsToSelector:@selector(edgesForExtendedLayout)])
[CCDirector sharedDirector].edgesForExtendedLayout = UIRectEdgeNone;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9473 次 |
| 最近记录: |