通过数组进行标记
初始化列表的时候给一个值如
for (int i = 0; i < [self.tableData count]; i++)
{
[_allOrderBoolArray addObject: @"NO"];
}
改变的时候
cell.isPushBlock = ^(BOOL isPush)
{
if (isPush) {
[self.allOrderBoolArray replaceObjectAtIndex:indexPath.row withObject:@"NO"];
}
else
{
[self.allOrderBoolArray replaceObjectAtIndex:indexPath.row withObject:@"YES"];
}
};
最后可以判断