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 -- - - - - --- - - - - - - - - - - - - -
I just want to say that all the information you have given here is awesome...great and nice blog thanks for sharing..Thank you very much for this one. And i hope this will be useful for many Developer. I am Working as a iOS App Developer for Best iOS App Development Company , I am following your blog and got great information.
ReplyDeleteThanks for sharing this eye-opening information this is awesome to understand about iOS development. I hope most iPhone app development company will get more help through this article.
ReplyDeleteThanks for sharing your valuable information regarding
ReplyDeleteIOS Development Company- Equinox IT Solutions