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.
我想知道我们如何找到用户的触摸和滑动速度。有人可以为此提供样本吗?
UIPanGestureRecognizer有一个velocityInView:方法(以每秒点数为单位)。
UIPanGestureRecognizer
velocityInView: