I am trying to implement a session management for a new module to a existing code base in which the main.m, Appdelegate and UIApplication files are bundled in a library and we have no access to modify it.
I have tried by adding Gesture recognizer to UIWindow method to track the touch events but the usual button touch events were misbehaving.
Now am planning to subclass UIView and overwrite touches began and hit test method and make all my UIView class implements this custom UIView class.
Do we have any better approach to track the touch events apart from the above mentioned approaches?