Guest User

Untitled

a guest
Feb 19th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. // original animation code, butter smooth, zero lag induced
  2. [UIView beginAnimations:@"hideSelectedColor" context:nil];
  3. [UIView setAnimationDuration:0.25];
  4. [UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
  5. selectedColor.alpha = 0;
  6. [UIView commitAnimations];
  7.  
  8. // block version, slows down everything
  9. [UIView animateWithDuration: 0.25
  10. delay: 0.0
  11. options: UIViewAnimationOptionCurveEaseIn
  12. animations:^{
  13. selectedColor.alpha = 0;
  14. }
  15. completion:^(BOOL finished){
  16. //[delegate control:self didSelectItemAtIndex:selectedColorIndex];
  17. }];
Add Comment
Please, Sign In to add comment