AFDescribeObj.h 910 B

12345678910111213141516171819202122232425262728293031
  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. #if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0
  14. @interface AFDescribeObj : NSObject <CAAnimationDelegate>
  15. @property (nonatomic, weak) UIView <CAAnimationDelegate>*containerView;
  16. #else
  17. @interface AFDescribeObj : NSObject
  18. @property (nonatomic, weak) UIView *containerView;
  19. #endif
  20. @property (nonatomic) AFAnimationType type;
  21. @property (nonatomic, strong) NSArray *shapeLayers;
  22. @property (nonatomic, strong) CABasicAnimation *basicAnimation;
  23. - (id)initWithType:(AFAnimationType)af_type inView:(UIView *)view;
  24. - (void)setStartTime:(CGFloat)af_startTime andDuration:(CGFloat)af_duration;
  25. - (void)addLineFrom:(CGPoint)from toPoint:(CGPoint)to color:(UIColor *)color;
  26. @end