Is there a way to get an array of class properties of certain kind? For example if i have interface like this
@interface MyClass : NSObject @property (st
use attributeKeys method of NSObject.
for (NSString *key in [self attributeKeys]) { id attribute = [self valueForKey:key]; if([attribute isKindOfClass:[UILabel class]]) { //put attribute to your array } }