Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有一种特定的方法可以知道用户移动滚动视图的像素数?我会相应地动态调整文本视图的大小。
谢谢
弗兰
查看UIScrollViewDelegate 协议参考。具体检查响应滚动和拖动方法,从那里您可以检查滚动视图的 contentOffset 属性,该属性将为您提供与原点的 x 和 y 偏移量。
编辑:添加了 contentOffset 属性的正确名称。