For anyone trying to get Hitendra's answer to work you have to place your code after the viewDidLoad
. I had success using the viewDidAppear
function.
Here is a swift implementation also:
private func removePartialCurlTap() {
if let gestures = self.view.gestureRecognizers as? [UIGestureRecognizer] {
for gesture in gestures {
self.view.removeGestureRecognizer(gesture)
}
}
}
Place it like so:
override func viewDidAppear(animated: Bool) {
super.viewDidAppear(animated)
removePartialCurlTap()
}