Zhang Hang

Use dot syntax

@@ -225,13 +225,13 @@ @@ -225,13 +225,13 @@
225 225
226 - (void)createArcAnimationForLayer:(CAShapeLayer *)layer ForKey:(NSString *)key fromValue:(NSNumber *)from toValue:(NSNumber *)to Delegate:(id)delegate 226 - (void)createArcAnimationForLayer:(CAShapeLayer *)layer ForKey:(NSString *)key fromValue:(NSNumber *)from toValue:(NSNumber *)to Delegate:(id)delegate
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 }
236 236
237 - (void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag{ 237 - (void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag{