开发者

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

开发者 https://www.devze.com 2023-03-28 13:40 出处:网络
This question already has answers here: Closed 1开发者_开发知识库1 years ago. Possible 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

精彩评论

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

关注公众号