1.首先创建一个UINavigationController的子类,然后在子类的.m文件中viewDidLoad函数中实添加
UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc] initWithTarget:self.interactivePopGestureRecognizer.delegate action:@selector(handleNavigationTransition:)];
pan.delegate = self;
[self.view addGestureRecognizer:pan];
然后使用子类导航栏就可以实现全屏滑动返回效果了
网友评论