Ok, so KVC is great, it allows us to use strings in place of the object or instance variable's name. Question though, can it work the other way around? Is there a method that will return the object or variable's name as an NSString object? For example, I can use KVC to replace;
[book.title];
with
[book valueForKey
"title"];
Now, on the other hand, say I want to pass the name of an object as a NSString. In this case, the object's name being "book."
I hope I'm making sense here. Is it possible?
[book.title];
with
[book valueForKey
Now, on the other hand, say I want to pass the name of an object as a NSString. In this case, the object's name being "book."
I hope I'm making sense here. Is it possible?