0

I have created a small app using a ScrollView w/ paging and a series of UIImageViews each representing a page. It acts similar to the Photos.app.

I want to be able to pan and zoom individually for each image (page of a scrollview).

What would be the most sound approach to do this? Should I replace the UIImageView page with a scrollview with a UIImage inside it? I would then have a main scroll view where each page of the scrollview had a scrollview with an image inside it that could be pinched,etc.

It seems like a messy approach. I am looking for a clean approach. Any suggestions?

4

2 回答 2

0

结帐UIPageViewController。该控制器管理每个页面的视图控制器,并使用页面卷曲或滚动等效果在它们之间进行转换。

在您的情况下,您将创建一个视图控制器来管理每个页面的缩放和平移滚动视图。

于 2013-01-24T13:23:28.150 回答
0

好吧,据我所知,您建议的方法就是它的完成方式。我用它来创建一个 PDF 查看器,一旦一切就绪,它就不会觉得太乱了。

如果您拥有的这些图像真的很大(很可能是这种情况,因为否则放大它们不会给您带来太多但像素化,但这只是我的一个假设)。

于 2013-01-24T13:14:48.170 回答