Created
July 24, 2014 15:52
-
-
Save drale2k/dd7a12fefc1ccf5ca9b0 to your computer and use it in GitHub Desktop.
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 characters
// 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