Skip to content

Commit

Permalink
fix a bug of reusable cell
Browse files Browse the repository at this point in the history
  • Loading branch information
yangsiy committed Sep 22, 2015
1 parent 5e0b165 commit 6a184c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions SCTableView/SCTableViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
if(!cell)
{
cell = [[SCTableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"reuseIdentifier" inTableView:self.tableView withSCStyle:SCTableViewCellStyleRight];
cell.selectionStyle = UITableViewCellSelectionStyleNone;
cell.delegate = self;
NSString *item = [self.data objectAtIndex:indexPath.row];
cell.textLabel.text = item;
}
cell.selectionStyle = UITableViewCellSelectionStyleNone;
cell.delegate = self;
NSString *item = [self.data objectAtIndex:indexPath.row];
cell.textLabel.text = item;
return cell;
}

Expand Down

0 comments on commit 6a184c9

Please sign in to comment.