Capturing all touch events

I have a UIViewController inside a navigation based application. I want the view manager to receive all touch events from child objects such as a table view and navigation bar. Or any other method that is capable of intercepting all touch events.

Currently, the view controller never does the following:

 - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event

I need to check the level level flag inside the touch event, regardless of where that touch came from (in any of the children of the view).

+3
source share
1 answer
+1

Source: https://habr.com/ru/post/1727914/


All Articles