STXMessageProxy
示例
运行示例项目,首先从仓库中克隆项目,并从 Example 目录运行 pod install
运行模式
用法
// Initialize from the source (the method call will be invoked on this object)
STXScrollDelegateProxy *proxy = [[STXScrollDelegateProxy alloc] initWithSource:self];
// If you have any selectors that you'd like to intercept, set the interceptor
proxy.interceptor = self.interceptor;
// If you have any broadcasting selectors, you can consider adding some subscribers to be notified
[proxy addBroadcastSubscriber:subscriber];
// Define the proxying policy for selector
[proxy setProxyingSelector:@selector(scrollViewWillBeginDragging:)
withRunningMode:mode];
对于更具体的用法,请参考示例项目。
安装
STXMessageProxy 通过 CocoaPods 提供。要安装它,只需将以下行添加到 Podfile 即可
pod 'STXMessageProxy'
作者
SteinX, [email protected]
许可
STXMessageProxy 在MIT许可下可用。更多信息请参阅LICENSE文件。