Open willylee007 opened 7 years ago
WS(weakSelf) itemView.itemViewAction = ^(MoreItemView *itemView){ if ([weakSelf.delegate respondsToSelector:@selector(morePannel:didSelectItemIndex:)]) { [weakSelf.delegate morePannel:weakSelf didSelectItemIndex:itemView.tag]; } }; //改成这样就不会泄漏了.
thanks!
WS(weakSelf) itemView.itemViewAction = ^(MoreItemView *itemView){ if ([weakSelf.delegate respondsToSelector:@selector(morePannel:didSelectItemIndex:)]) { [weakSelf.delegate morePannel:weakSelf didSelectItemIndex:itemView.tag]; } }; //改成这样就不会泄漏了.