iPhone显示照片/图像滑动(如照片库和Facebook应用程序)? [英] iPhone show photos/images sliding (like photo library and Facebook app)?

查看:112
本文介绍了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/.

这篇关于iPhone显示照片/图像滑动(如照片库和Facebook应用程序)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆