标签:
通过数组进行标记
初始化列表的时候给一个值如
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"];
}
};
最后可以判断
标签:
原文地址:http://www.cnblogs.com/keyan1102/p/4401092.html