Guest User

Untitled

a guest
Dec 13th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. if ([gestureRecognizer state] == UIGestureRecognizerStateEnded)
  2. {
  3.  
  4. NSArray *keys = [letterDictionary allKeys];
  5.  
  6. int nKey = [keys count];
  7. for(int k1 = 0; k1 < nKey; ++ k1) { for(int k2 = k1 + 1; k2 < nKey; ++ k2) {
  8. if ( CGRectIntersectsRect( ((UIView*) [letterDictionary objectForKey:[keys objectAtIndex:k1]]).frame, ((UIView*) [letterDictionary objectForKey:[keys objectAtIndex:k2]]).frame ) ) {
  9.  
  10. NSLog(@"Touched");
  11.  
  12. }
  13. }
  14. }
Add Comment
Please, Sign In to add comment