whdals0
whdals0

Reputation: 191

I want to create an auto scroll tableview using swift

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

Answers (1)

Steve Madsen
Steve Madsen

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

Related Questions