iOS 隐藏NavigationBar的方法

使用下面方法:

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

退出该控制器时还原:

- (void)viewWillDisappear:(BOOL)animated {
	[super viewWillDisappear:animated];
	
	[self.navigationController setNavigationBarHidden:NO];
}

-- end

转载于:https://www.cnblogs.com/jhcelue/p/6916090.html

你可能感兴趣的:(iOS 隐藏NavigationBar的方法)