Created
July 24, 2014 15:52
-
-
Save drale2k/dd7a12fefc1ccf5ca9b0 to your computer and use it in GitHub Desktop.
Revisions
-
drale2k revised this gist
Jul 24, 2014 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,4 @@ // Gets called by notification -(void)reloadTableView{ [self.tableView reloadData]; -
drale2k created this gist
Jul 24, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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]; }