From 4eba01ba4aec84904ae412cb7d0f652c9d3672ba Mon Sep 17 00:00:00 2001 From: Jake Marsh Date: Wed, 12 Dec 2012 12:41:37 -0600 Subject: [PATCH] Fixed bug where section index was incorrectly hardcoded in one place. --- .../JMStaticContentTableViewSection.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JMStaticContentTableViewController/JMStaticContentTableViewSection.m b/JMStaticContentTableViewController/JMStaticContentTableViewSection.m index b3f1c74..f46beeb 100644 --- a/JMStaticContentTableViewController/JMStaticContentTableViewSection.m +++ b/JMStaticContentTableViewController/JMStaticContentTableViewSection.m @@ -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]; }