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

时间:2021-10-29 07:20:23

I have a UIView that will eventually contain about 2 screens worth of information. I want to give the user the ability to scroll down via flicking (just standard flicking like in Safari).
How do I do this?

我有一个UIView,最终将包含大约2个屏幕的信息。我希望让用户能够通过轻弹向下滚动(只需在Safari中标准轻弹)。我该怎么做呢?

1 个解决方案

#1


11  

Place your UIView inside a UIScrollView. Apple has some good example code for this on their developer pages.

将UIView放在UIScrollView中。 Apple在他们的开发者页面上有一些很好的示例代码。

#1


11  

Place your UIView inside a UIScrollView. Apple has some good example code for this on their developer pages.

将UIView放在UIScrollView中。 Apple在他们的开发者页面上有一些很好的示例代码。