Merge pull request #793 from nguyenhuy/ImproveCellNodeRelayout

ASCellNode delegate to automatically resize in table & collection when -setNeedsLayout called.
This commit is contained in:
appleguy
2015-11-01 11:11:32 -08:00
17 changed files with 116 additions and 97 deletions

View File

@@ -121,7 +121,6 @@ static const NSInteger kMaxLitterSize = 100; // max number of kitten cell
// Assume only kitten nodes are selectable (see -tableView:shouldHighlightRowAtIndexPath:).
KittenNode *node = (KittenNode *)[_tableView nodeForRowAtIndexPath:indexPath];
[node toggleImageEnlargement];
[_tableView relayoutRowAtIndexPath:indexPath withRowAnimation:UITableViewRowAnimationAutomatic];
}
- (ASCellNode *)tableView:(ASTableView *)tableView nodeForRowAtIndexPath:(NSIndexPath *)indexPath