Advertisement
Guest User

Indefinite Animation

a guest
Apr 25th, 2014
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -(void)animateButton{
  2.     [UIView animateWithDuration:1.0 animations:
  3.      ^(void)
  4.      {
  5.          [_animationBGView setAlpha:0];
  6.      }
  7.                      completion:
  8.      ^(BOOL finished)
  9.      {
  10.          [UIView animateWithDuration:1.0 animations:
  11.           ^(void)
  12.           {
  13.               [_animationBGView setAlpha:1];
  14.           }
  15.                           completion:
  16.           ^(BOOL finished)
  17.           {
  18.               [self animateButton];
  19.           }];
  20.      }];
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement