我的 view2 中有一个滚动视图,当我打开该视图 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];