Saturday, July 23, 2011

NSPredicate in action...

NSPredicate *predicate = [NSPredicate predicateWithFormat:
@"self isKindOfClass: %@",
[UIButton class]];
NSArray *buttons = [self.view.subviews
filteredArrayUsingPredicate:predicate]];

No comments:

Post a Comment