Created
November 28, 2011 19:04
-
-
Save kespindler/1401553 to your computer and use it in GitHub Desktop.
Find the tags that are used in a view hierarchy so you don't interfere with existing tags!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (NSMutableSet *)recurIntoView:(UIView *)v { | |
NSMutableSet *s = [NSMutableSet set]; | |
for (UIView *sv in v.subviews) { | |
[s addObject:[NSNumber numberWithInt:sv.tag]]; | |
[s unionSet:[self recurIntoView:sv]]; | |
} | |
return s; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment