Showing
1 changed file
with
3 additions
and
3 deletions
| @@ -227,9 +227,9 @@ | @@ -227,9 +227,9 @@ | ||
| 227 | { | 227 | { |
| 228 | CABasicAnimation *arcAnimation = [CABasicAnimation animationWithKeyPath:key]; | 228 | CABasicAnimation *arcAnimation = [CABasicAnimation animationWithKeyPath:key]; |
| 229 | arcAnimation.fromValue = @0; | 229 | arcAnimation.fromValue = @0; |
| 230 | - [arcAnimation setToValue:to]; | 230 | + arcAnimation.toValue = to; |
| 231 | - [arcAnimation setDelegate:delegate]; | 231 | + arcAnimation.delegate = delegate; |
| 232 | - [arcAnimation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionDefault]]; | 232 | + arcAnimation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionDefault]; |
| 233 | [layer addAnimation:arcAnimation forKey:key]; | 233 | [layer addAnimation:arcAnimation forKey:key]; |
| 234 | [layer setValue:to forKey:key]; | 234 | [layer setValue:to forKey:key]; |
| 235 | } | 235 | } |
-
Please register or login to post a comment