Thursday, November 8, 2012

Objective-C Selector

id object;
SEL anAction = @selector(action:);
if([object respondsToSelector:anAction]){
   [object performSelector:anAction withObject:self];
}

No comments: