简体   繁体   English

如何在iPhone中使视图滚动?

[英]How can I make a View scrollable in iPhone?

I want to make a long view, for example, 3200*240, whatever. 我想作个长远的看法,例如3200 * 240。 Now, I want to the user display from start from 0,0. 现在,我要从0,0开始向用户显示。 When the user scroll right, the x index will increase 320. So, I need a scrollView on top of the UIView to detect the scroll? 当用户向右滚动时,x索引将增加320。因此,我需要UIView顶部的scrollView来检测滚动吗? Also, I need to have a UIScrollViewDelegate, right? 另外,我需要有一个UIScrollViewDelegate,对吗? thank you. 谢谢。

您可以访问此网站http://www.edumobile.org/iphone/iphone-programming-tutorials/scrollview-example-in-iphone/。只需按照此处的步骤进行滚动查看即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM