MaysamSh

Untitled

Apr 3rd, 2013
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. - (void)viewDidLoad
  2. {
  3.     [super viewDidLoad];
  4.     ax = needleBig.layer.anchorPoint.x;
  5.     ay = needleBig.layer.anchorPoint.y;
  6. }
  7.  
  8. [UIView animateWithDuration:0.4f
  9.                           delay:0.01f
  10.                         options:UIViewAnimationOptionCurveEaseOut
  11.                      animations:^{
  12.                         CGAffineTransform rotate = CGAffineTransformMakeRotation((30.0 / 180.0) * 3.14);
  13.                          needleBig.layer.anchorPoint=CGPointMake(ax, ay);
  14.  
  15.                          
  16.                      }
  17.                      completion:^(BOOL finished){
  18.                          
  19.                          
  20.                      }];
Advertisement
Add Comment
Please, Sign In to add comment