简体   繁体   中英

How do I make my scrollbar always visible within tableview iOS(Swift AutoLayout)

I need to modify my scrollbar(tableView Scrollbar) which supports following features like,

1.Scrollbar must be visible always (I don't know how to use flashindicators) 2.Scrollbar also need to have drag ability for fast scrolling between cells,

I don't know how to do that ,so anyone pls suggest with pods similar like swiftyverticalscrollbar or any other open source projects 参考截图 I also attached screenshot for the feature which I am expecting

its simple try it using 'SwiftyVerticalScrollBar' , you can read its details here

using this framework you can add custom scrollbar and you can do changes acordingly.

i hope i will helpful for you ...:)

[edited]

try this for set scrollbar proerly

let newX = self.view.bounds.size.width-10
self.scrollBar.frame = CGRect(x: newX, y: 0, width: 10, height: self.view.bounds.size.height)

along with above codes,i added below code for hiding default scrollbar

tableView.showsHorizontalScrollIndicator = false

tableView.showsVerticalScrollIndicator = false

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM