开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜