I'm trying to read property name but I'm not shore how. Is it possible in ObjC to get string "theProperty" from self.theProperty?
I know how to read all properties (with "class_copyPropertyList
") and their names (with "property_getName
") but couldn't find a way to do something like:
NSString *text = [self.theProperty somehowReadThePropertyName];
// expected result is: text == @"theProperty"
Any ideas?