Reflection/List properties: Difference between revisions
Content deleted Content added
added objc |
|||
Line 122:
const char *attributes = property_getAttributes(p);
// for simple types we can use Key-Value Coding to access it
// but in general we will have to use
//
id value = [obj valueForKey:@(name)];
NSLog(@"%s\t%s\t%@", name, attributes, value);
|