19

enter image description here

I have screens like this photo. HomeViewController will push to maintabbar, and a tabbar item will push to detailScreen. Why swipe back not working. I think it is default in IOS. Please help me

p/s: If i use SwipeBack in cocoapods, it working. But i don't want use it

Nguyen Hoan
  • 1,530
  • 1
  • 10
  • 18

3 Answers3

57

Try setting the interactive pop gesture recognizer delegate to nil:

self.navigationController.interactivePopGestureRecognizer.delegate = nil;
davidethell
  • 11,398
  • 5
  • 40
  • 60
0

I had the same use case and it took me a while to solve this, here is the detailed answer given

Malik Kulsoom
  • 116
  • 2
  • 4
-3

I have similar problem & got fixed using method from this answer

Simply, did you call

[super viewWillAppear:animated];

when overriding

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    // your other codes goes on
}
Stephen Kennedy
  • 18,869
  • 22
  • 90
  • 106
clichedmoog
  • 115
  • 1
  • 5