I asked the appropriate question, but thought that I would share this with my question. See the code below to call the getter property .
SEL propSelector = NSSelectorFromString(propertyName);
NSInvocation *inv = [NSInvocation invocationWithMethodSignature:[[target class]instanceMethodSignatureForSelector:propSelector]];
[inv setSelector:propSelector];
[inv setTarget:target];
[inv invoke];
float value;
[inv getReturnValue:&value];
I would like to do the same, but call the SETTER property . I would also like to avoid manually creating the setter name by building a string @"setPropertyName:". Bottom Line - is it possible to use the selector created on this line to call setter ?
SEL propSelector = NSSelectorFromString(propertyName);
source
share