Skip to content

Instantly share code, notes, and snippets.

@drale2k
Created July 24, 2014 15:52
Show Gist options
  • Select an option

  • Save drale2k/dd7a12fefc1ccf5ca9b0 to your computer and use it in GitHub Desktop.

Select an option

Save drale2k/dd7a12fefc1ccf5ca9b0 to your computer and use it in GitHub Desktop.

Revisions

  1. drale2k revised this gist Jul 24, 2014. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.m
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    // Gets called by notification
    -(void)reloadTableView{

    [self.tableView reloadData];
  2. drale2k created this gist Jul 24, 2014.
    13 changes: 13 additions & 0 deletions gistfile1.m
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    -(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];
    }