Possible Duplicate:
obj-c access property dynamically
I'm attempting to access an object’s properties dynamically using strings. I know that we can access classes dynamically etc but is this possible for properties? For example, instead of directly accessing the property name, can we use a NSString to access it?
@property (retain,nonatomic) int height;
NSString *stringName = @"height"; object.stringName = 30.0f;
where object.height == object.stringName;