1.首先創(chuàng)建一個(gè)UINavigationController的子類,然后在子類的.m文件中viewDidLoad函數(shù)中實(shí)添加
UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc] initWithTarget:self.interactivePopGestureRecognizer.delegate action:@selector(handleNavigationTransition:)];
pan.delegate = self;
[self.view addGestureRecognizer:pan];
然后使用子類導(dǎo)航欄就可以實(shí)現(xiàn)全屏滑動(dòng)返回效果了