Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // original animation code, butter smooth, zero lag induced
- [UIView beginAnimations:@"hideSelectedColor" context:nil];
- [UIView setAnimationDuration:0.25];
- [UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
- selectedColor.alpha = 0;
- [UIView commitAnimations];
- // block version, slows down everything
- [UIView animateWithDuration: 0.25
- delay: 0.0
- options: UIViewAnimationOptionCurveEaseIn
- animations:^{
- selectedColor.alpha = 0;
- }
- completion:^(BOOL finished){
- //[delegate control:self didSelectItemAtIndex:selectedColorIndex];
- }];
Add Comment
Please, Sign In to add comment