Skip to content

Instantly share code, notes, and snippets.

@drale2k
Created July 24, 2014 15:52
Show Gist options
  • Save drale2k/dd7a12fefc1ccf5ca9b0 to your computer and use it in GitHub Desktop.
Save drale2k/dd7a12fefc1ccf5ca9b0 to your computer and use it in GitHub Desktop.
// Gets called by notification
-(void)reloadTableView{
[self.tableView reloadData];
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:[self.workoutSessionManager currentExercises].count -1 inSection:0];
WJSelectExerciseCell *cell = (WJSelectExerciseCell*)[self.tableView cellForRowAtIndexPath:indexPath];
cell.alpha = 0;
cell.transform = CGAffineTransformMakeScale(0.8, 0.8);
[UIView animateWithDuration:0.4 delay:0.35 usingSpringWithDamping:0.7 initialSpringVelocity:1 options:UIViewAnimationOptionCurveEaseInOut animations:^{
cell.alpha = 1;
cell.transform = CGAffineTransformIdentity;
} completion:nil];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment