Guest User

Untitled

a guest
May 21st, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. [eventsArray insertObject:event atIndex:0];
  2. NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
  3. [self.tableView insertRowsAtIndexPaths:[NSArray arrayWithObject:indexPath]
  4. withRowAnimation:UITableViewRowAnimationFade];
  5. [self.tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0] atScrollPosition:UITableViewScrollPositionTop animated:YES];
Add Comment
Please, Sign In to add comment