jeudi 28 juillet 2016

Stop overscroll UITableView only at the top?

There is similar question Stop UITableView over scroll at top & bottom?, but I need slighty different functionality. I want my table so that it can be overscrolled at the bottom, but cannot be overscrolled at the top. As I understood,

tableView.bounces = false

Allows to disable overscrolling at both top and bottom, however, I need disabling this only at the top. Like

tableView.bouncesAtTheTop = false
tableView.bouncesAtTheBottom = true

Aucun commentaire:

Enregistrer un commentaire