From 583daec2232dd56ab7752b251becd0ab9322ea41 Mon Sep 17 00:00:00 2001 From: NicholasTD07 Date: Mon, 3 Mar 2014 10:09:26 +0800 Subject: [PATCH] Removed the potentially wrong assert for indexPath.section. --- NTDCoreDataTableViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NTDCoreDataTableViewController.m b/NTDCoreDataTableViewController.m index 25a3a76..8136fc1 100644 --- a/NTDCoreDataTableViewController.m +++ b/NTDCoreDataTableViewController.m @@ -36,8 +36,8 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { - NSParameterAssert([indexPath section] == 0); NSParameterAssert([indexPath row] < [self tableView:self.tableView numberOfRowsInSection:[indexPath section]]); + UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:[self cellIdentifier] forIndexPath:indexPath]; // Configure the cell...