To run the example project, clone the repo, and run pod install
from the Example directory first.
// 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];
For a more concrete usage case, please refer to the Demo project.
STXMessageProxy is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'STXMessageProxy'
SteinX, [email protected]
STXMessageProxy is available under the MIT license. See the LICENSE file for more info.