简体   繁体   中英

How can I make a View scrollable in iPhone?

I want to make a long view, for example, 3200*240, whatever. Now, I want to the user display from start from 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? Also, I need to have a UIScrollViewDelegate, right? thank you.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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