- (void)scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(inout CGPoint *)targetContentOffset
{
NSLog(@"velocity.x === %f, %f", velocity.x, velocity.y);
NSLog(@"targetContentOffset ==== %f, %f", targetContentOffset->x, targetContentOffset->y);
self.targetContentOffset_y = targetContentOffset->y;
}
targetContentOffset->y就是scrollView垂直滚动的距离 水平 未测
注:只是个人记录,本人菜鸟一枚谢谢