开发者

iphone, need to put many text boxes on the view, how to scroll down to view more content?

开发者 https://www.devze.com 2023-01-01 18:31 出处:网络
iphone, need to put many text boxes on the view, how to scroll down to view more content? I actually put buttons and labels 开发者_JS百科on the ScrollView, but the scrolling doesn\'t work. Do I need t

iphone, need to put many text boxes on the view, how to scroll down to view more content? I actually put buttons and labels 开发者_JS百科on the ScrollView, but the scrolling doesn't work. Do I need to write any code for that, any example?

Thanks.


You need to set the contentSize property of the UIScrollView to something bigger than its frame size.

[aScrollView setContentSize:CGSizeMake(320, 1000)];
0

精彩评论

暂无评论...
验证码 换一张
取 消