Tracking Touches

UIControl instances use an embedded method set to work with touches. These methods allow the control to track touches throughout their interaction with the control object:

Image beginTrackingWithTouch:withEvent:Called when a touch enters a control’s bounds.

Image continueTrackingWithTouch:withEvent:Follows the touch with repeated calls as the touch remains within the control bounds.

Image endTrackingWithTouch:withEvent:Handles the last touch for ...

Get The Core iOS Developer’s Cookbook, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.