如何取消拖拽后的UIScrollView弹跳动画?(不禁用退回)
谢谢!
发布于 2014-01-21 01:27:28
像dragRefresh这样的效果?如果是,你应该设置你的scrollView contentInset at scrollView end drag委托方法。
发布于 2014-01-20 23:37:29
在scrollView委托方法scrollViewWillEndDragging:withVelocity:targetContentOffset:中设置内容偏移量
- (void)scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(inout CGPoint *)targetContentOffset;
{
scrollView.contentOffset = //.. content offset of where you want it to stop, use the current offset if you want it to stay where it is.
}你的问题很模糊,没有给我更好的答案,希望这能有所帮助。
发布于 2015-03-19 01:37:35
[scrollView setContentOffset:scrollView.contentOffset animated:NO];注意:必须使用函数的动画版本,而不是没有动画标志的版本。
https://stackoverflow.com/questions/21237899
复制相似问题