Roll back errant fix for cell reuse issues.

This commit is contained in:
Jeff Arena
2012-01-09 16:01:03 -05:00
committed by Blake Watters
parent 66235530d4
commit fdd3f4e1e5
2 changed files with 2 additions and 10 deletions

View File

@@ -332,11 +332,7 @@ static NSString* lastUpdatedDateDictionaryKey = @"lastUpdatedDateDictionaryKey";
RKTableViewCellMapping* cellMapping = [self.cellMappings cellMappingForObject:mappableObject];
NSAssert(cellMapping, @"Cannot build a tableView cell for object %@: No cell mapping defined for objects of type '%@'", mappableObject, NSStringFromClass([mappableObject class]));
// Return an existing cell or initialize a new one
UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:indexPath];
if (! cell) {
cell = [cellMapping mappableObjectForData:self.tableView];
}
UITableViewCell* cell = [cellMapping mappableObjectForData:self.tableView];
NSAssert(cell, @"Cell mapping failed to dequeue or allocate a tableViewCell for object: %@", mappableObject);
// Map the object state into the cell

View File

@@ -318,11 +318,7 @@
RKTableViewCellMapping* cellMapping = [self.cellMappings cellMappingForObject:mappableObject];
NSAssert(cellMapping, @"Cannot build a tableView cell for object %@: No cell mapping defined for objects of type '%@'", mappableObject, NSStringFromClass([mappableObject class]));
// Return an existing cell or initialize a new one
UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:indexPath];
if (! cell) {
cell = [cellMapping mappableObjectForData:self.tableView];
}
UITableViewCell* cell = [cellMapping mappableObjectForData:self.tableView];
NSAssert(cell, @"Cell mapping failed to dequeue or allocate a tableViewCell for object: %@", mappableObject);
// Map the object state into the cell