含scrollView上控件坐标偏移量

- (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垂直滚动的距离 水平 未测
注:只是个人记录,本人菜鸟一枚谢谢
posted @ 2015-11-16 18:17  小小磊  阅读(274)  评论(0编辑  收藏  举报