UISCrollView の ContentOffset を移動したい。CABasicAnimation または UIView animateWithDuration のさまざまな方法を使用していますが、問題は、アニメーション中に UIScrollView が左右から切り取られることです。
アニメーションが終了すると、UIScrollView のサイズは正しいように見えます。
- (void)animateScrollToTheBottom {
self.scroll.scrollEnabled = NO;
CGFloat scrollHeight = self.scroll.contentSize.width;
[UIView animateWithDuration:10
delay:0
options:UIViewAnimationCurveEaseInOut | UIViewAnimationOptionBeginFromCurrentState
animations:^{
self.scroll.contentOffset = CGPointMake(0, scrollHeight);
} completion:^(BOOL finished) {
self.scroll.scrollEnabled = YES;
}];
}
助言がありますか?ありがとう!