JTNumberScrollAnimatedView.h 837 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // JTNumberScrollAnimatedView.h
  3. // JTNumberScrollAnimatedView
  4. //
  5. // Created by Jonathan Tribouharet
  6. //
  7. #import <UIKit/UIKit.h>
  8. @protocol JTNumberScrollAnimatedViewDelegate <NSObject>
  9. - (void)numberScrollAnimatedViewTime:(float )time;
  10. @end
  11. @interface JTNumberScrollAnimatedView : UIView
  12. @property (strong, nonatomic) NSNumber *value;
  13. @property (strong, nonatomic) UIColor *textColor;
  14. @property (strong, nonatomic) UIFont *font;
  15. @property (assign, nonatomic) CFTimeInterval duration;
  16. @property (assign, nonatomic) CFTimeInterval durationOffset;
  17. @property (assign, nonatomic) NSUInteger density;
  18. @property (assign, nonatomic) NSUInteger minLength;
  19. @property (assign, nonatomic) BOOL isAscending;
  20. @property(nonatomic, weak) id<JTNumberScrollAnimatedViewDelegate> delegate;
  21. - (void)startAnimation;
  22. - (void)stopAnimation;
  23. @end