From 851084e01424844045a9966689f68204941f37ec Mon Sep 17 00:00:00 2001 From: NicholasTD07 Date: Mon, 3 Mar 2014 10:11:12 +0800 Subject: [PATCH] Using dot notation for NSIndexPath properties. --- NTDCoreDataTableViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NTDCoreDataTableViewController.m b/NTDCoreDataTableViewController.m index 8136fc1..2d83426 100644 --- a/NTDCoreDataTableViewController.m +++ b/NTDCoreDataTableViewController.m @@ -36,7 +36,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { - NSParameterAssert([indexPath row] < [self tableView:self.tableView numberOfRowsInSection:[indexPath section]]); + NSParameterAssert(indexPath.row < [self tableView:self.tableView numberOfRowsInSection:indexPath.section]); UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:[self cellIdentifier] forIndexPath:indexPath];