DoraemonKit iOS 闪退, 因为介入了rxswift 项目, 都用了runtime 导致UITableView 和CollectionView 的代理有问题, 第三方库直接闪退

w6mmgewl  于 3个月前  发布在  iOS
关注(0)|答案(1)|浏览(113)

DoraemonMCEventCapturer
DoraemonMCReuseViewDelegateProxy *delegateProxy = [DoraemonMCReuseViewDelegateProxy proxyWithTarget:delegate];
objc_setAssociatedObject(self, _cmd, delegateProxy, OBJC_ASSOCIATION_RETAIN);
[self do_mc_setDelegate:delegateProxy];

14ifxucb

14ifxucb1#

retainDelegate: false)
assert(delegateProxy._forwardToDelegate() === currentDelegate)
self._setCurrentDelegate(proxy, to: object)
assert(self._currentDelegate(for: object) === proxy)
assert(delegateProxy._forwardToDelegate() === currentDelegate)

相关问题