
1.仔细看中间那条消息的评论。 在进去之前是8条。进去我随便评论了以后是9条,返回父试图就变成9条了。 我们是为了解决这个问题! 刷新单条评论数据。
开始之前我有想过用代理。但是那个方法不能解决这个数据回传后刷新cell的问题。!
那么就用block吧, 直接上代码!。
1.在列表的详情里面实现。
@property (nonatomic, copy) void(^blackNewCommentCountBlock)(NSString *);
@property(nonatomic,strong)NSString *commentcountID; //老的评论数据

2,在详情里面实现block

3.在列表的did里面去实现代理。
用点语法,并刷新你点击的那个cell。。

就这样。 你运行项目就知道了。
网友评论