我可以显示UIScrollView
指示符,但我无法向下滚动查看隐藏的内容。我在viewDidLoad
:
self.scroller.contentSize = CGSizeMake(320, 600);
self.scroller.frame = CGRectMake(320,480,320,480);
有人可以帮助我吗?
答案 0 :(得分:0)
// define the area that is initially visible
scrollViewCustom.frame = CGRectMake(0, 5, 354, 500);
// then define how much a user can scroll it
[scrollViewCustom setContentSize:CGSizeMake(354, 960)];
此外,清除滚动视图的背景颜色以显示文本。
scrollViewCustom.backgroundColor = [UIColor clearColor];