我使用界面构建器创建了一个新的 UIScrollView,我放置了一个带有长文本的标签,滚动条正在显示和滑动,尽管内容变得粘滞并且在滚动时没有隐藏
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
title.text = @"hellllllo world hellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo worldhellllllo world";
scrollview.contentSize =
CGSizeMake(self.view.frame.size.width, self.view.frame.size.height+600);
//scrollview.maximumZoomScale = 4.0;
//scrollview.minimumZoomScale = 0.75;
scrollview.clipsToBounds = YES;
// scrollview.bounces = YES;
scrollview.superview.autoresizesSubviews = NO;
//scrollview.delegate = self;
[scrollview setScrollEnabled:YES];
// Do any additional setup after loading the view.
}