Showing
1 changed file
with
0 additions
and
14 deletions
| @@ -275,20 +275,6 @@ | @@ -275,20 +275,6 @@ | ||
| 275 | } | 275 | } |
| 276 | } | 276 | } |
| 277 | 277 | ||
| 278 | -- (void)createArcAnimationForLayer:(CAShapeLayer *)layer | ||
| 279 | - forKey:(NSString *)key | ||
| 280 | - fromValue:(NSNumber *)from | ||
| 281 | - toValue:(NSNumber *)to | ||
| 282 | - delegate:(id)delegate{ | ||
| 283 | - CABasicAnimation *arcAnimation = [CABasicAnimation animationWithKeyPath:key]; | ||
| 284 | - arcAnimation.fromValue = @0; | ||
| 285 | - arcAnimation.toValue = to; | ||
| 286 | - arcAnimation.delegate = delegate; | ||
| 287 | - arcAnimation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionDefault]; | ||
| 288 | - [layer addAnimation:arcAnimation forKey:key]; | ||
| 289 | - [layer setValue:to forKey:key]; | ||
| 290 | -} | ||
| 291 | - | ||
| 292 | - (void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag{ | 278 | - (void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag{ |
| 293 | [_descriptionLabels enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) { | 279 | [_descriptionLabels enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) { |
| 294 | [UIView animateWithDuration:0.2 animations:^(){ | 280 | [UIView animateWithDuration:0.2 animations:^(){ |
-
Please register or login to post a comment