//显示navigationbar
- (void)viewWillAppear:(BOOL)animated{
[self.navigationController setNavigationBarHidden: YES];
//隐藏navigationbar
-(void)viewWillDisappear:(BOOL)animated{
[self.navigationController setNavigationBarHidden: NO];
//侧滑返回手势
UIScreenEdgePanGestureRecognizer *gesture = [[UIScreenEdgePanGestureRecognizer alloc] initWithTarget:self action:@selector(clickBackBtn)];
gesture.edges = UIRectEdgeLeft;
[self.view addGestureRecognizer:ges];
iOS :navigationbar隐藏之后手动加侧滑返回
最新推荐文章于 2020-03-06 18:19:39 发布