usability-testing

Log every button press / interaction in an iOS App

主宰稳场 提交于 2019-12-04 18:07:50
问题 Is there a way to catch all sorts of user interactions, but first and foremost button presses in an iOS app? I'm interested in logging these events with a time stamp and ideally with the name of the screen they appear on. I guess the simplest way is to insert a call of a custom log function into every action called by a button. But that's too much effort. I also thought about subclassing UIButton , but this would still require me to change every button in an existing app and would work only

Log every button press / interaction in an iOS App

只愿长相守 提交于 2019-12-03 12:30:09
Is there a way to catch all sorts of user interactions, but first and foremost button presses in an iOS app? I'm interested in logging these events with a time stamp and ideally with the name of the screen they appear on. I guess the simplest way is to insert a call of a custom log function into every action called by a button. But that's too much effort. I also thought about subclassing UIButton , but this would still require me to change every button in an existing app and would work only for buttons (not cells in a table for example). Is there a point were I can intercept touches in general