iPhone显示照片/图像滑动(如照片库和Facebook应用程序)?

iPhone显示照片/图像滑动(如照片库和Facebook应用程序)?

问题描述:

我几天前就开始开发iOS了,所以对我来说一切都很新!
我需要在应用程序中显示照片滑块,就像我们在iPhone库或Facebook应用程序中一样。
经过一番研究,我走到了尽头。我的目标是逐个显示一组照片,并让用户从右向左滑动手指,反之亦然: - )

I started developing to iOS just a couple of days ago, so everything is very new to me! I need to show in an application a "photo slider" as we've in the iPhone library or Facebook application. After some research, I reached a dead end. My goal is to show a set of photos, one by one, and having the user slide the finger from right to left, or vice versa :-)

有没有人有一个例子或知道一个?

Does anyone has an example or knows of one?

感谢所有。

Well Three20很有名,但我不鼓励你使用它。如果您只需要一个照片滑块,那么将整个Three20框架放入您的项目中,并尝试弄清楚基于URL的导航功能如何工作可能会非常痛苦。

Well Three20 is famous but I would discourage you from using it. If all you need is a photo slider then putting the entire Three20 framework into your project and trying to figure out how the URL-based navigation thing works can be a real pain.

这是一个更好的选择, https://github.com/enormego/PhotoViewer 。它是照片滑块和相应图像缓存的独立实现。您可以在作者的博客上详细了解代码的工作原理, http://developers.enormego.com/

Here is a better alternative, https://github.com/enormego/PhotoViewer. It's a standalone implementation of the photo slider and a corresponding image cache. You can read more about how the code works on the author's blog, http://developers.enormego.com/.