commit 2429dba52eff4e39a6549fdfe787e36a4cf4c41c parent 90a32f54f1b8d585ac939c762d93b0e4cd1cb8cb Author: Kyle Milz <kyle@Kyles-MacBook-Pro.local> Date: Sun, 20 Sep 2015 14:03:27 -0600 ios: make new list insertion animated Diffstat:
M | ios-ng/shlist/MainTableViewController.m | | | 7 | +++---- |
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/ios-ng/shlist/MainTableViewController.m b/ios-ng/shlist/MainTableViewController.m @@ -175,12 +175,11 @@ clickedButtonAtIndex:(NSInteger)buttonIndex - (void) finished_new_list_request:(SharedList *) shlist { - // shlist.cell = [self.tableView cellForRowAtIndexPath:] [self.shared_lists addObject:shlist]; - // [self.tableView insertRowsAtIndexPaths:index_path withRowAnimation:UITableViewRowAnimationMiddle]; - - [self.tableView reloadData]; + // response looks good, insert the new list + NSIndexPath *index_path = [NSIndexPath indexPathForRow:[self.shared_lists count] - 1 inSection:0]; + [self.tableView insertRowsAtIndexPaths:@[index_path] withRowAnimation:UITableViewRowAnimationFade]; } // major thing here is join list requests