在系统方法中调用navigationController的标准写法

在系统方法中调用navigationController的标准写法

-(void)viewWillAppear:(BOOL)animated{

[super viewWillAppear:animated];

if (self.navigationController) {

self.navigationController.navigationBarHidden = YES;

}

}

1.[super viewWillAppear:animated];

2.

if (self.navigationController) {

  3. self.navigationController.navigationBarHidden = YES;

}



posted on 2015-08-31 23:44  🌞Bob  阅读(190)  评论(0编辑  收藏  举报

导航