the whole idea is this: you need as soon as possible in the application (preferably in appDelegate) to replace - touchesBegan:withEvent:
in the UIResponder with your own method that will read tachi, and then call native touchesBegan:
if you need to do it only for UIButton: try the same focus, but at the UIButton level (I'm not sure what happens, maybe UIButton doesn't override this method). Or if these are all your buttons, make your subclass, if these are not your buttons, then you can try to make a category on UIButton and redefine touchesBegan in it: (epl doesn’t recommend doing this, but you can try)
- touchesBegan:withEvent:
in UIResponder with your own method that will count tachi, and then call nativetouchesBegan:
- Max Mikheyenko