SEL selMethod = @selector(function_name:);? [duplicate]
Possible Duplicate:
What actually is a @selector?
What does the following statement do?
SEL selMethod = @selector(function_name:);
(where, type of SEL is objc_selector.)
Any guess?Read up on Selectors. They are used alot when you need to refer to class methods. For example, when dynamically deciding what to call at runtime.
精彩评论