A页面中有浏览量
A->B后,B返回A,不刷新界面的情况下A的浏览量增加
block 回调的方式:
B页面实现Block
.h文件中
@property (nonatomic,copy) void (^confirmReply)(NSInteger row,NSInteger replyNum);
.m文件中
- (
void
)viewWillDisappear:(
BOOL
)animated
{
if
(
isReply
&&
self
.
confirmReply
) {
self . confirmReply ( _row , backReplyNum );
self . confirmReply ( _row , backReplyNum );
}
[
super
viewWillDisappear
:animated];
}
A页面在跳转的地方对回调进行处理