【问题标题】:How to get the CGRect of the UIScrollView after scrolling?滚动后如何获取 UIScrollView 的 CGRect?
【发布时间】:2018-11-21 11:06:43
【问题描述】:

我想在调用scrollViewDidEndDragging时获取滚动视图当前显示的区域的 CGRect 或 x,y

【问题讨论】:

标签: ios swift uiscrollview uiscrollviewdelegate


【解决方案1】:

你可以使用

scrollView.contentOffset.x 
scrollView.contentOffset.y

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-03-16
    • 2023-04-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多