Reputation: 191
What I would like to make ultimately is uitableview, which automatically scrolls down.
The total number of lines is set to 25 lines, and it scrolls slowly from line 1 to line 25, and when it reaches the end, it returns to line 1 and scrolls again.
https://github.com/cbpowell/MarqueeLabel I want to automatically scroll the UITableView like MarqueeLabel. (I'll scroll vertically, not horizontally.)
How is this possible?
Upvotes: 0
Views: 188
Reputation: 13791
UITableView
inherits from UIScrollView
, so try looking at the functions there to set the content offset. In particular, setContentOffset(_:animated:)
may be useful.
Upvotes: 1