美文网首页
iOS开发中 手势滑动返回时 tabbar跟屏幕滑动出现

iOS开发中 手势滑动返回时 tabbar跟屏幕滑动出现

作者: Goldfish_jinyu | 来源:发表于2017-01-12 10:02 被阅读296次
ios开发中 tabbar一级页面手势滑动返回时这样写:
<UIGestureRecognizerDelegate>
-(void)viewDidAppear:(BOOL)animated{
    [super viewDidAppear:animated];
    self.navigationController.interactivePopGestureRecognizer.enabled = NO;//主页面要写这一句关闭手势
}

             MsgNotifyViewController * msvc = [[MsgNotifyViewController alloc]init];
             msvc.hidesBottomBarWhenPushed = YES;//
            [self.navigationController pushViewController:msvc animated:YES];

相关文章

网友评论

      本文标题:iOS开发中 手势滑动返回时 tabbar跟屏幕滑动出现

      本文链接:https://www.haomeiwen.com/subject/lkjdbttx.html