How can I prevent this warning with a variable selector name?
NSString *methodName;
SEL method = NSSelectorFromString(methodName);
if ([self respondsToSelector:method]) {
if ([methodName hasSuffix:@":"])
[self method:dict];
else
[self method];
}
Use
Instead of
And
Instead of