iPhone UIScrollView Speed Check

后端 未结 8 1635
梦如初夏
梦如初夏 2020-11-30 19:31

I know how to get the contentOffset on movement for a UIScrollView, can someone explain to me how I can get an actual number that represents the current speed of a UIScrollV

8条回答
  •  死守一世寂寞
    2020-11-30 20:03

    May be this would be helpful

    - (void)scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(inout CGPoint *)targetContentOffset
    

提交回复
热议问题