隐藏状态栏 StatusBar - (BOOL)prefersStatusBarHidden { //隐藏状态栏 return YES; } 隐藏导航栏 NavigationBar - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; //隐藏导航栏 [self.navigationController setNavigationBarHidden:YES]; }