daily pastebin goal
21%
SHARE
TWEET

Untitled

a guest Dec 13th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand