How can I forward class methods in Objective-C?

前端 未结 1 962
耶瑟儿~
耶瑟儿~ 2021-01-14 01:08

In Objective-C I know you can forward selectors from one instance to another:

- (id)forwardingTargetForSelector:(SEL)aSelector;

How can I a

1条回答
  •  迷失自我
    2021-01-14 02:04

    In Objective-C a class object is just an object like any other and support forwarding in the same way. What you are looking for is:

    + (id)forwardingTargetForSelector:(SEL)aSelector
    

    0 讨论(0)
提交回复
热议问题