我有一个自动滚动的 UITableView setContentOffset
。像这样:
CGFloat point = self.table.tblMinutes.contentSize.height - self.table.tblMinutes.bounds.size.height;
[self.table.tblMinutes setContentOffset:CGPointMake(0, point) animated:false];
[self.table.tblMinutes layoutIfNeeded];
[UIView animateWithDuration:20.0 delay:0 options:UIViewAnimationOptionCurveLinear animations:^{
[self.table.tblMinutes setContentOffset:CGPointMake(0, point - 500) animated:false];
} completion:nil];
我想要实现的是滚动平稳地减速和停止。我无法做到这一点。
调用[self.table.tblMinutes.layer removeAllAnimations]
会停止动画,但由于某种原因移动了 contentOffset,没有达到我想要的效果。
我尝试UIViewAnimationOptionBeginFromCurrentState
在动画中使用该选项,但什么也没做。
有什么建议么?