ビュー2にスクロールビューが1つあります。そのビュー2を開くと、スクロールビューの内容をx軸でスクロールしたいのですが、これを試しましたが、うまくいきません..助けてください
self.scrollView.scrollEnabled = NO;
CGFloat scrollHeight = 100;
[UIView animateWithDuration:10
delay:0
options:UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction
animations:^{
self.scrollView.contentOffset = CGPointMake(0, scrollHeight);
}
completion:nil];