an auto scroll TextView
VDFlashLabe *flashLbl = [VDFlashLabel createFlashLabelWithFrame:CGRectMake(0, 64, [UIScreen mainScreen].bounds.size.width, 40) hspace:10 stringArray:strArr];
[self.view addSubview:flashLbl];
[self.flashLabel showAndStartTextContentScrollWithPt:1.0];
[flashLabel kill];
/**
停止自动滚动
*/
- (void)stopAutoScroll;
/**
继续自动滚动
*/
- (void)continueAutoScroll;
/**
重新加载
重新设置数据源后可调用此方法刷新数据
*/
- (void)reloadData;
/**
控件即将刷新
*/
- (void)flashLabelWillRefreshData:(VDFlashLabel *)flashLabel;
/**
控件已经刷新
*/
- (void)flashLabelDidRefreshData:(VDFlashLabel *)flashLabel;
/**
点击文本
*/
- (void)flashLabelDidTapView:(UIView *)view;
/**
水平间距
*/
@property (nonatomic, assign) CGFloat hspace;
/**
行高
*/
@property (nonatomic, assign) CGFloat lineHeight;
/**
自动滚动
*/
@property (nonatomic, assign) BOOL autoScroll;
/**
允许用户滚动,打开后自动关闭自动滚动
*/
@property (nonatomic, assign) BOOL userScroolEnabled;
/**
背景色
*/
@property (nonatomic, strong) UIColor *backColor;
/**
滚动方向
VDFlashLabelScrollDirectionLeft,
VDFlashLabelScrollDirectionRight,
VDFlashLabelScrollDirectionTop,
VDFlashLabelScrollDirectionDown,
*/
@property (nonatomic, assign) VDFlashLabelScrollDirection scrollDirection;
/**
数据源
*/
@property (nonatomic, strong) NSArray *stringArray;