SJFullscreenPopGesture icon indicating copy to clipboard operation
SJFullscreenPopGesture copied to clipboard

setViewControllers:viewcontrollers 用这个方法后,手势返回失效了

Open abc8312111 opened this issue 4 years ago • 2 comments

[self.navigationController setViewControllers:viewcontrollers animated:YES]; 跳到下一个页面后,手势返回就失效了。求解有什么好的解决方案

abc8312111 avatar Jul 02 '20 08:07 abc8312111

同求???

kklwg avatar Apr 24 '22 04:04 kklwg

[self.navigationController setViewControllers:viewcontrollers animated:YES]; 跳到下一个页面后,手势返回就失效了。求解有什么好的解决方案

  • (void)beganWithNav:(UINavigationController *)nav viewController:(UIViewController *)viewController offset:(CGFloat)offset { SJSnapshot *snapshot = viewController.sj_previousViewControllerSnapshot;

是由于这个snapshot为nil return了。 可改写这方法。

kklwg avatar Apr 25 '22 01:04 kklwg