简体   繁体   English

隐藏iOS导航栏?

[英]Hide iOS nav bar?

My program uses 我的程序使用

-(void)viewWillAppear:(BOOL)animated{ [super viewWillAppear:animated]; [self.navigationController setNavigationBarHidden:YES]; //it hides }

to hide a navigation controller and 隐藏导航控制器和

- (void)viewWillAppear:(BOOL)animated { } - (void)viewWillAppear:(BOOL)animated {}

to describe a AVFoundation camera method. 描述AVFoundation相机方法。 I get a warning for using the same method names. 我收到使用相同方法名称的警告。 Is there another naming convention i can set to use both methods in my app? 是否有另一种命名约定我可以设置在我的应用程序中使用这两种方法?

你不应该在viewDidLoad隐藏Navigation Bar吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM