|
|
4 år sedan | |
|---|---|---|
| .. | ||
| LMJHorizontalScrollText | 4 år sedan | |
| LICENSE | 4 år sedan | |
| README.en.md | 4 år sedan | |
简体中文 | 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 |