CAKeyframeAnimation * arrowMovementAnimation = [CAKeyframeAnimation animationWithKeyPath:@"position"];
CGMutablePathRef path = CGPathCreateMutable();
CGPathAddArc(path, NULL,
100, 100, // center point
100, // radius
0, 3.14*0.5, // new angle for the new pointz
YES); // clock wise or not
arrowMovementAnimation.path = path;
arrowMovementAnimation.delegate = self;
arrowMovementAnimation.duration = .3f;
arrowMovementAnimation.repeatCount = 1;
//arrowMovementAnimation.cumulative = YES;
//arrowMovementAnimation.additive = YES;
arrowMovementAnimation.calculationMode = kCAAnimationPaced;
arrowMovementAnimation.fillMode = kCAFillModeForwards;
arrowMovementAnimation.timingFunction =
[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
arrowMovementAnimation.removedOnCompletion = NO;
[self.circle.layer addAnimation:arrowMovementAnimation forKey:@"arrowMovement"];
'Developer > iOS' 카테고리의 다른 글
[iOS]네비게이션 숨기고 보이게하기 (0) | 2013.06.11 |
---|---|
[iOS]Xcode Terminal로 commit하기. (1) | 2013.06.04 |
[iOS]Social Framework , Facebook, Twiiter 연동 (0) | 2013.05.25 |
[iOS]UserDefaults 사용법 (0) | 2013.05.15 |
[iOS]하위 뷰 조회하기. (0) | 2013.05.07 |