Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)viewDidLoad
- {
- [super viewDidLoad];
- ax = needleBig.layer.anchorPoint.x;
- ay = needleBig.layer.anchorPoint.y;
- }
- [UIView animateWithDuration:0.4f
- delay:0.01f
- options:UIViewAnimationOptionCurveEaseOut
- animations:^{
- CGAffineTransform rotate = CGAffineTransformMakeRotation((30.0 / 180.0) * 3.14);
- needleBig.layer.anchorPoint=CGPointMake(ax, ay);
- }
- completion:^(BOOL finished){
- }];
Advertisement
Add Comment
Please, Sign In to add comment