简体   繁体   中英

Increase default UITableView Scroll Speed

I have an app that has a lot of images surfaced via UITableView. I want the user to be able to scroll through these faster than the default scroll speed eg if the user scrolls 1 screen pixel down then the UITableView should scroll 2 pixels down.

Seems like this should be provided already instead of messing around with offsets in scrollViewDidScroll. Any recommendations?

There is no build-in way to control the speed of scrolling. You can either add your custom logic to scrollVieWDidScroll or you can implement sectionIndexTitlesForTableView and provide user with a quick scroll based on some grouping (like letters in standard Contacts app)

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