小编Sim*_*mon的帖子

如何在iOS 7中专门为cocos2D隐藏导航栏?

我的应用程序是用的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)

hidden uinavigationbar cocos2d-iphone ios7 xcode5

10
推荐指数
2
解决办法
9473
查看次数

标签 统计

cocos2d-iphone ×1

hidden ×1

ios7 ×1

uinavigationbar ×1

xcode5 ×1