I can not find anywhere in the documentation. When this message is called in my subclass of UIView:
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
How can I get the touch for which this message was called?
On both NSSet and UIEvent, I can only get a set of touches, but not a unique identifier, so I can determine which sensor caused the message.
PS: why the hell do they send an NSSet of all touches, as well as being able to get the same set from[[event allTouches] anyObject]
[[event allTouches] anyObject]
, . , touchesMoved:withEvent:, .
touchesMoved:withEvent:
touches. , , , touches.anyObject, . , .
touches
touches.anyObject
, event.allTouches, , . touches , event.allTouches , , .
event.allTouches
UITouch. , iOS UITouch. , . , UITouch NSDictionary, , objc_setAssociatedObject.
UITouch
NSDictionary
objc_setAssociatedObject