Switched retrieval of table views cells during row selection events to lookup by indexPath on the tableView

rather than through table controller plumbing
This commit is contained in:
Blake Watters
2012-01-13 15:56:55 -05:00
parent 5ae15be560
commit 8670b233e0

View File

@@ -475,7 +475,8 @@ static NSString* lastUpdatedDateDictionaryKey = @"lastUpdatedDateDictionaryKey";
id object = [self objectForRowAtIndexPath:indexPath];
UITableViewCell* cell = [self cellForObjectAtIndexPath:indexPath];
// NOTE: Do NOT use cellForObjectAtIndexPath here. See https://gist.github.com/eafbb641d37bb7137759
UITableViewCell* cell = [theTableView cellForRowAtIndexPath:indexPath];
RKTableViewCellMapping* cellMapping = [_cellMappings cellMappingForObject:object];
// NOTE: Handle deselection first as the onSelectCell processing may result in the tableView