-(void)viewWillAppear:(BOOL)animated{ [super viewWillAppear:animated]; //开启侧滑返回 self.navigationController.interactivePopGestureRecognizer.delegate = (id)self; //对于导航栏的是否显示使用此方法设置 [self.navigationController setNavigationBarHidden:NO animated:YES]; } //设置状态栏的颜色显示 -(UIStatusBarStyle)preferredStatusBarStyle{ return UIStatusBarStyleLightContent; }