单军华
2018-04-28 1d39caf7235522ae121db7a188ba41a706217407
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//
//  HBdansView.h
//  弹幕
//
//  Created by 伍宏彬 on 15/10/14.
//  Copyright (c) 2015年 伍宏彬. All rights reserved.
//
 
#import <UIKit/UIKit.h>
#import "UIView+WHB.h"
 
@interface HBdansView : UIView
/**
 *  使用此方法传入弹幕内容数组,需自行调用starDans方法
 *
 *  @param frame    frame
 *  @param contents 弹幕内容数组,必须包含的是字符串
 *
 *  @return HBdansView
 */
- (instancetype)initDansViewFrame:(CGRect)frame;
/**
 *  启动弹幕
 */
- (void)starDans;
/**
 *  下一条文字
 */
- (void)addRandomText:(NSString *)randomText;
/**
 *  屏幕内最多显示的条数(最小值为1(默认值) 最大10)
 */
@property (nonatomic, assign) NSInteger countInScreen;
 
 
@property (nonatomic, assign) NSInteger currentIndex;
 
/**
 *  圆角值
 */
@property (nonatomic, assign) CGFloat roundVaule;
/**
 *  边线宽
 */
@property (nonatomic, assign) CGFloat lineWidth;
/**
 *  边线颜色
 */
@property (nonatomic, copy) UIColor *lineColor;
/**
 *  文字颜色
 */
@property (nonatomic, copy) UIColor *textColor;
/**
 *  文字背景颜色
 */
@property (nonatomic, copy) UIColor *textBackColor;
 
 
@property (nonatomic, strong) NSMutableArray *randomMutableArray;
 
 
@end