我在 UIScrollView 中显示多个标签,我可以让它们显示并且我可以让它们滚动,但是屏幕顶部的标签被切断并且不可见,除非你下拉。我尝试调整 UIScrollViews 内容大小、框架等均无济于事。请帮忙!代码:
[self.view addSubview: scrollView];
scrollView.scrollEnabled = YES;
int scrollWidth = 120;
int scrollHeight = 1000;
scrollView.contentSize = CGSizeMake(scrollWidth,scrollHeight);
scrollView.frame = CGRectMake(0, 0, 320, 400);