CCZTrotingLabel.h 587 B

123456789101112131415161718192021222324
  1. //
  2. // CCZTrotingLabel.h
  3. // CCZTrotView
  4. //
  5. // Created by 金峰 on 16/9/25.
  6. // Copyright © 2016年 金峰. All rights reserved.
  7. //
  8. #import "CCZTrotingView.h"
  9. #import "CCZTrotingAttribute.h"
  10. typedef NS_ENUM(NSUInteger, CCZTrotingRate) {
  11. CCZTrotingRateFast = 1,
  12. CCZTrotingRateNormal, /**< Default*/
  13. CCZTrotingRateSlow,
  14. };
  15. @interface CCZTrotingLabel : CCZTrotingView
  16. @property (nonatomic, assign) CCZTrotingRate rate;
  17. @property (nonatomic, strong) UILabel *currentLabel;
  18. - (void)addText:(NSString *)text;
  19. - (void)addTrotAttribute:(CCZTrotingAttribute *)attribute;
  20. @end