[英]How do I make a UIView “scrollable” in my iPhone app?
I have a UIView
that will eventually contain about 2 screens worth of information. 我有一个UIView
,最终将包含大约2个屏幕的信息。 I want to give the user the ability to scroll down via flicking (just standard flicking like in Safari). 我想让用户能够通过轻弹向下滚动(只需在Safari中标准轻弹)。
How do I do this? 我该怎么做呢?
Place your UIView
inside a UIScrollView
. 将UIView
放在UIScrollView
。 Apple has some good example code for this on their developer pages. Apple在他们的开发者页面上有一些很好的示例代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.