How to get touch location on uiwindow or uiview without uigesturerecognizer, purpose is getting touch location in extremely low latency as dispatcher can delay touch firing events
ios touch location without uigesturerecognizer
85 Views Asked by user818117 At
2
You need to subclass
UIView
and override theUIResponder
(superclass ofUIView
) methodtouchesBegan(_:with:)
. See the docs for the method here.Also, make sure your view has the property
isUserInteractionEnabled
set totrue
.