AFDescribeObj.h 737 B

123456789101112131415161718192021222324252627
  1. //
  2. // AFDescribeObj.h
  3. // animationFrame
  4. //
  5. // Created by pingshw on 14-5-27.
  6. // Copyright (c) 2014年 pingshw. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. typedef enum
  10. {
  11. AFAnimationStrokeEnd = 0
  12. }AFAnimationType;
  13. @interface AFDescribeObj : NSObject <CAAnimationDelegate>
  14. @property (nonatomic, weak) UIView *containerView;
  15. @property (nonatomic) AFAnimationType type;
  16. @property (nonatomic, strong) NSArray *shapeLayers;
  17. @property (nonatomic, strong) CABasicAnimation *basicAnimation;
  18. - (id)initWithType:(AFAnimationType)af_type inView:(UIView *)view;
  19. - (void)setStartTime:(CGFloat)af_startTime andDuration:(CGFloat)af_duration;
  20. - (void)addLineFrom:(CGPoint)from toPoint:(CGPoint)to color:(UIColor *)color;
  21. @end