Advertisement
imbear

Touches detection

Oct 3rd, 2012
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -(void) touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event
  2. {
  3.     if ([event touchesForView:self])
  4.         [self sendTouchEvent:touches];
  5. }
  6. -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
  7. {
  8.     if ([event touchesForView:self])
  9.         [self sendTouchEvent:touches];
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement