DoraemonMCEventCapturer
DoraemonMCReuseViewDelegateProxy *delegateProxy = [DoraemonMCReuseViewDelegateProxy proxyWithTarget:delegate];
objc_setAssociatedObject(self, _cmd, delegateProxy, OBJC_ASSOCIATION_RETAIN);
[self do_mc_setDelegate:delegateProxy];
1条答案
按热度按时间14ifxucb1#
retainDelegate: false)
assert(delegateProxy._forwardToDelegate() === currentDelegate)
self._setCurrentDelegate(proxy, to: object)
assert(self._currentDelegate(for: object) === proxy)
assert(delegateProxy._forwardToDelegate() === currentDelegate)