0

我正在开发一个购物应用程序。类似于 iStore 中的 Fab 应用程序。我已经放置了一个 UIscrollview,我在其中添加了 4 个 UIimageview 并将它们作为子视图添加到 UIScrollview。现在当用户滚动需要加载不同的图像(即不同的产品出售)。我如何做到这一点。然后如何向此图像和标题添加按钮。

4

2 回答 2

0

See the following links to get the How to use UIScrollView to show different images on scroll?

Images in UIScrollview
Images Change in UIScrollView

To add button and tittle to image, just add uibutton as addsubView to ImageView.

于 2012-10-11T07:07:16.037 回答
0

You could try this projects : Project 1 Project 2

Then when you need to add the title, add it as subview for the images. In the project I sent you, the images are added as UIButton frame. Try it.

于 2012-10-11T07:09:22.287 回答