May 2011
Beginner
834 pages
25h 19m
English
A UIView, being a UIResponder, inherits four methods corresponding to the four UITouch phases that require UIEvent delivery. A UIEvent is delivered to a view by calling one or more of these four methods (the touches... methods):
touchesBegan:withEvent:
touchesMoved:withEvent:
touchesBegan:withEvent: has moved.
touchesEnded:withEvent:
touchesBegan:withEvent: has left the screen.
touchesCancelled:withEvent:
touchesBegan:withEvent:.
The parameters of these methods are:
anyObject (an NSSet doesn’t implement lastObject because a set is unordered).
allTouches message. This means all the event’s touches, including but not necessarily limited to those in the first parameter; there might be touches in a different phase or intended for some other view. You can call touchesForView: or touchesForWindow: to ask for the set of touches associated with ...Read now
Unlock full access