观察了一下,iOS系统的通信录发现他们做的滚动条有一点小细节,滚动条刚出来的时候会闪一下,然后消失。
看了下api发现了这个一直没有用过的属性。
open func flashScrollIndicators() // displays the scroll indicators for a short time. This should be done whenever you bring the scroll view to front.
如果想拥有这个效果只需要调用一下就好。
tableView.flashScrollIndicators()
有没有很细节,哈哈。