123456789101112131415161718192021222324252627 |
- //
- // AFDescribeObj.h
- // animationFrame
- //
- // Created by pingshw on 14-5-27.
- // Copyright (c) 2014年 pingshw. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- typedef enum
- {
- AFAnimationStrokeEnd = 0
- }AFAnimationType;
- @interface AFDescribeObj : NSObject <CAAnimationDelegate>
- @property (nonatomic, weak) UIView *containerView;
- @property (nonatomic) AFAnimationType type;
- @property (nonatomic, strong) NSArray *shapeLayers;
- @property (nonatomic, strong) CABasicAnimation *basicAnimation;
- - (id)initWithType:(AFAnimationType)af_type inView:(UIView *)view;
- - (void)setStartTime:(CGFloat)af_startTime andDuration:(CGFloat)af_duration;
- - (void)addLineFrom:(CGPoint)from toPoint:(CGPoint)to color:(UIColor *)color;
- @end
|