Projects
View on GitHub
JerryLMJ/LMJVerticalScrollText
About
A simple, easy-to-use string scrolling control.
Other ProjectsMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.en.md
Original简体中文 | English
LMJVerticalScrollText
- A simple and easy to use string scroll control
Effect
- Cycle from bottom to top without gaps

- There are gaps that cycle from top to bottom

Support what kinds of scenarios to use
- UIView、UITableViewCell、Storyboard etc.
Usage
Use cocoapods:
pod 'LMJVerticalScrollText'Manual import:
- Drag All files in the
LMJVerticalScrollTextfolder to project - Import the main file:
#import "LMJVerticalScrollText.h"
- Drag All files in the
Properties and methods
| Attribute | Description |
|---|---|
| delegate | delegate |
| --- | --- |
| textDataArr | text data, supports <NSString *> and <NSAttributedString *> |
| textFont | text font |
| textColor | text color |
| textAlignment | text alignment |
| --- | --- |
| textStayTime | text dwell time, default 3s |
| scrollAnimationTime | text scrollAnimationTime, default 1s |
| --- | --- |
| touchEnable | whether can be clicked, default YES |
| Method | Description |
|---|---|
| - startScrollBottomToTopWithSpace | scroll from bottom to top have clearance |
| - startScrollTopToBottomWithSpace | have clearance from the top to the bottom of the scroll |
| - startScrollBottomToTopWithNoSpace | no clearance from the bottom up |
| - startScrollTopToBottomWithNoSpace | no clearance from the top to the bottom of the scroll |
| - stop | to stop scrolling |
| - stopToEmpty | stops scrolling and clears the display |
| Deleget Method | Optional | Description |
|---|---|---|
| LMJVerticalScrollTextDelegate | --- | --- |
| - verticalScrollText: currentTextIndex: | Optional | the currently displayed |
| - verticalScrollText: clickIndex: content: | Optional | click the current display content |
Update log
- 2019.5.23(3.0.1):
Fix some known problems. - 2019.5.22(3.0.0):
The new 3.0 version is here! 🎉🎉🎉
To better fit the control functionality, the project name will be changed from LMJScrollTextView2 to LMJVerticalScrollText
This update adds the installation of cocoapods that you have been asking for, and improves the file structure of demo module as well as new Chinese and English documents - 2018.5.29(2.2.2):
This update fixes the display error of multiple notes when used in xib or storyboard.
Optimize Demo Demo effect, and added the use of this control in the storyboard Demo. - 2018.5.16(2.2.0):
This update supports Settings for text retention, scrolling time, and bug fixes:
(1) support setting the duration of text retention, which is 3s by default
(2) support setting the single scrolling time of text animation, which is 1s by default
(3) fix text scrolling when clicking can not respond - 2018.1.3(2.1.0):
This update supports NSAttributedString type data in textDataArr data source, which enriches the text types that can be displayed. - 2017.12.28(2.0.0):
This update adds more scrolling modes, property Settings and callback methods to the existing ones:
(1) from the original rolling mode with clearance to two rolling modes with clearance and without clearance. Methods are respectively startScrollBottomToTopWithSpace, startScrollTopToBottomWithSpace, startScrollBottomToTopWithNoSpace, startScrollTopToBottomWithNoSpace
(2) added the text alignment and whether it can respond to the click setting
(3) click callback proxy function is added - 2017.8.18(1.3.5):
Fixed the issue where bottomtotop/startScrollTopToBottom methods should again be called with abnormal results. - 2017.8.16(1.3.2):
Added tests to add controls to the cell in the demo. - 2017.7.29(1.3.1):
Fixed the problem of dramatically increasing cycle speed and consuming a large amount of CPU after the app entered the background. - 2017.2.14(1.3.0):
Fixed an issue where the loop speed increased dramatically and consumed a large amount of CPU after entering other pages. - 2017.2.13(1.2.0):
A simple proxy callback has been added to return the sequence number of the current information. - 2017.2.13(1.1.0):
A friend said that the first data went twice, and later found out the reason is the timer problem.
Cancel the use of timer after modification, use circular call implementation.
Explore related projects
Loading…