Advertisement
Guest User

Better

a guest
Apr 25th, 2014
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. - (void) animateButton {
  2.     float alpha = (_animationBGView.alpha < 1? 1 : 0);
  3.  
  4.     [UIView animateWithDuration:1 animations:^{
  5.         [_animationBGView setAlpha:alpha];
  6.     } completion:^(BOOL finished){
  7.         if(finished) [self animateButton];
  8.     }];
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement