Disable back swipe gesture in UINavigationController(Back swipe in Navigation is a default feature from iOS 7 onwards) Below Code will completely remove swipe gesture to all view controllers:(Keep in it your base view controller's ViewDidLoad method) if ([ self . navigationController respondsToSelector : @selector ( interactivePopGestureRecognizer )]) [ self . navigationController . view removeGestureRecognizer : self . navigationController . interactivePopGestureRecognizer ]; Below code will remove to particular viewcontroller: self . navigationController . interactivePopGestureRecognizer . enabled = false ; ---- --- - --- - - - - - - -- - - - Have a Happy iOS Objective C + Swift Coding -- - - - - --- - - - - - - - - - - - - -
Comments
Post a Comment
If any of my posts helped you.... or if you feel for any improvement.. you can leave a comment here.. So that, I will try to implement or make corrections for all of us.