block循环引用释放不掉界面(dealloc不执行)

@interface XEditorAnswerDetailView ()
{
    XEditorCommentEntity *commentModel;
}
@property (nonatomic, strong) UITableView *answerTableView;
@property (nonatomic, strong) UIImageView *tabHeaderImageView;

上面
{
属性!!!
}

cell.answerToAnswerBlock = ^{
__strong typeof(weakSelf)self = weakSelf;
//BOOL isSelf = [weakCell.answerContentLabel.text hasPrefix:@"我"];
if (self.delegate && [self.delegate respondsToSelector:@selector(answerToAnswerWithAuthor:insertIdx:)]) {
[self.delegate answerToAnswerWithAuthor:⚠️_commentModel ⚠️ insertIdx:indexPath.row];
}
};

会造成循环引用

你可能感兴趣的:(block循环引用释放不掉界面(dealloc不执行))