NSObject 的消息转发机制

2020-12-16  本文已影响0人  穷小子
截屏2020-12-16 上午11.49.46.png

Step1

/// Dynamically provides an implementation for a given selector for a class method.

/// Dynamically provides an implementation for a given selector for an instance method

Step2

/// Returns the object to which unrecognized messages should first be directed.

Step3

/// Overridden by subclasses to forward messages to other objects.

/// Returns an NSMethodSignature object that contains a description of the method identified by a given selector.

上一篇 下一篇

猜你喜欢

热点阅读