I have an app that is live in the store. I am trying to get it ready for the iOS11 release but have run into an annoying problem.
None of the UIBarButtonItem>
Yes there bug in iOS 11
so you can use another way for it.
Use interactivePopGestureRecognizer
like
self.navigationController?.interactivePopGestureRecognizer?.delegate = self as! UIGestureRecognizerDelegate
and implement delegate method like
func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool {
guard gestureRecognizer == interactivePopGestureRecognizer else {
return true // default value
}
// Write you code here.
}