简体   繁体   中英

UITableView scroll cell by cell

I want to scroll a UITableView cell by cell (like the date picker, for example), so that the first visible row is always displayed entirely. How can I do that?

使用滚动视图委托方法scrollViewWillEndDragging:withVelocity:targetContentOffset:您的表视图委托已经是滚动视图委托),以便您可以检查建议的targetContentOffset并对其进行修改以确保目标第一行是完全可见的。

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