I was wondering if I could capture an event (via Notification or some other mechanism), of a UIButton if somebody is holding the key pressing a UIButton for an excessive period of time; longer than a single button push – let’s say somebody that holds the button pressed for a few seconds…
Thank you.
You can add
UILongPressGestureRecognizerto your button, pass a selector in itsinitWithTarget:action:, and choose the duration time by setting itsminimumPressDurationproperty.