|
3 anos atrás | |
---|---|---|
.. | ||
LMJHorizontalScrollText | 3 anos atrás | |
LICENSE | 3 anos atrás | |
README.en.md | 3 anos atrás |
简体中文 | English
A choice:
Use cocoapods:
pod 'LMJHorizontalScrollText'
Manual import:
LMJHorizontalScrollText
folder to project#import "LMJHorizontalScrollText.h"
Attribute | Description |
---|---|
text | scroll string content |
textFont | font |
textColor | font color |
speed | rolling speed, value range 0.01~0.1, default 0.03, the smaller the value, the faster the speed |
moveDirection | Scroll mode, default LMJTextScrollWandering, enumeration values are as follows: - LMJTextScrollMoveLeft: left - LMJTextScrollMoveRight: right |
moveMode | scroll way, default LMJTextScrollWandering, enumeration values are as follows: - LMJTextScrollContinuous: starting control in continuous rolling - LMJTextScrollIntermittent: starting control in continuous rolling - LMJTextScrollFromOutside: starting from the outside control rolling - LMJTextScrollWandering: Scroll back and forth in the control (not affected by the moveDirection property) |
Method | Description |
---|---|
move | to scroll |
stop | stop scrolling |