Class method equivalent of -respondsToSelector:

后端 未结 5 689
说谎
说谎 2020-12-01 13:43

Is there a class method equivalent to -respondsToSelector:?

Something like +respondsToSelector:?

The reason I am asking is because

5条回答
  •  天命终不由人
    2020-12-01 14:23

    In Objective C, classes are also objects so you can send the object messages. In particular, you can ask -respondsToSelector: of a class. You can't send class level methods to non-class objects though.

提交回复
热议问题