Skip to content

Commit

Permalink
Fixed bug where section index was incorrectly hardcoded in one place.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemarsh committed Dec 12, 2012
1 parent 221d225 commit 4eba01b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -98,7 +98,7 @@ - (void) removeCellAtIndex:(NSUInteger)rowIndex animated:(BOOL)animated {
self.staticContentCells = [NSArray arrayWithArray:cells];

if(animated) {
[self.tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:[NSIndexPath indexPathForRow:rowIndex inSection:0]] withRowAnimation:UITableViewRowAnimationAutomatic];
[self.tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:[NSIndexPath indexPathForRow:rowIndex inSection:self.sectionIndex]] withRowAnimation:UITableViewRowAnimationAutomatic];
} else {
[self.tableView reloadData];
}
Expand Down

0 comments on commit 4eba01b

Please sign in to comment.