@property (strong, nonatomic) NSMutableDictionary *selectDict;
[self.selectDict setObject:@(1) forKey:[NSIndexPath indexPathForRow:0 inSection:0]];
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
model.isChecked = [[self.selectDict objectForKey:indexPath]intValue];
cell.model = model;
}
网友评论