I have an array of UIView objects. I want to call - (NSArray *)filteredArrayUsingPredicate:(NSPredicate *)predicate on this array to get array of <
UIView
- (NSArray *)filteredArrayUsingPredicate:(NSPredicate *)predicate
I got errors using Jef's method. This worked for me, though.
NSPredicate *predicate = [NSPredicate predicateWithFormat: @"self isKindOfClass: %@", class];
Source: https://stackoverflow.com/a/2556306/168594