Fixing memory issue with reusing cells.

This commit is contained in:
Samuel Clay 2014-02-25 15:29:05 -08:00
parent b1a6ee9aca
commit 08ad585f1d
2 changed files with 5 additions and 3 deletions

View file

@ -124,7 +124,7 @@ static UIFont *indicatorFont = nil;
if (cell.isRiverOrSocial) {
riverPadding = 20;
}
CGContextRef context = UIGraphicsGetCurrentContext();
CGRect rect = CGRectInset(r, 12, 12);

View file

@ -998,7 +998,7 @@
dequeueReusableCellWithIdentifier:cellIdentifier];
if (cell == nil) {
cell = [[FeedDetailTableCell alloc] initWithStyle:UITableViewCellStyleDefault
reuseIdentifier:nil];
reuseIdentifier:cellIdentifier];
}
NSDictionary *story = [self getStoryAtRow:indexPath.row];
@ -1099,7 +1099,9 @@
}
[cell setupGestures];
[cell setNeedsDisplay];
return cell;
}