Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ([gestureRecognizer state] == UIGestureRecognizerStateEnded)
- {
- NSArray *keys = [letterDictionary allKeys];
- int nKey = [keys count];
- for(int k1 = 0; k1 < nKey; ++ k1) { for(int k2 = k1 + 1; k2 < nKey; ++ k2) {
- if ( CGRectIntersectsRect( ((UIView*) [letterDictionary objectForKey:[keys objectAtIndex:k1]]).frame, ((UIView*) [letterDictionary objectForKey:[keys objectAtIndex:k2]]).frame ) ) {
- NSLog(@"Touched");
- }
- }
- }
Add Comment
Please, Sign In to add comment