简体   繁体   English

如何在我的iPhone应用程序中创建UIView“可滚动”?

[英]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.

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