开发者

SEL selMethod = @selector(function_name:);? [duplicate]

This question already has answers here: Closed 1开发者_开发知识库1 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜