What are the standard UISystemGestureGateGestureRecognizers
installed on the top level UIView
of an iOS app for?
My app consists of two vie
This delayed touches bothered me too. Just as an addition to what's said before, here's a simple fix:
override func viewDidAppear(_ animated: Bool) {
let window = view.window!
let gr0 = window.gestureRecognizers![0] as UIGestureRecognizer
let gr1 = window.gestureRecognizers![1] as UIGestureRecognizer
gr0.delaysTouchesBegan = false
gr1.delaysTouchesBegan = false
}
no need to remove those gesture recognizers. just add this to the main view controller.
It appears that these recognizers are meant to prevent accidental touches near the top and bottom of the screen. They aren't configured with any targets, but can (like any UIResponder
) absorb touches to prevent them from being passed up the responder chain.
Notes (tested on iOS 7.1):
addTarget:action:
to verify that targets weren't being added or removed on the fly. delegate
is always nil
for both instances.