简体   繁体   English

iOS 照片库 - flickr

[英]iOS photo gallery - flickr

I'm working on an app for a client and the client wants absolutely everything to be shareable (using sharekit).我正在为客户开发一个应用程序,客户绝对希望所有内容都可以共享(使用 sharekit)。 One of the views that the client wants is a photo gallery that can be easily updated and viewed.客户想要的视图之一是可以轻松更新和查看的照片库。 I've looked around at folks who have done this and I particularly like the way the Obama 2012 app does it using flickr.我环顾四周做这件事的人,我特别喜欢 Obama 2012 应用程序使用 flickr 的方式。 This brings me to the question, I'm trying to use the flickr api to display a photo gallery that will allow sharekit to share the url to the image but am hitting a brick wall.这让我想到了一个问题,我正在尝试使用 flickr api 来显示一个照片库,该照片库将允许 sharekit 将 url 共享到图像,但我遇到了砖墙。 I've searched for a few days now and haven't found a tutorial that shows a working example in the way I need it, if anyone has done something similar or knows a good tutorial that would be greatly appreciated.我已经搜索了几天,但没有找到一个教程以我需要的方式显示一个工作示例,如果有人做过类似的事情或知道一个很好的教程,将不胜感激。

Download the list of images using the Flickr API, and asynchronously add them to a UIScrollView inside a UINavigationController with its back button as "back".使用 Flickr API 下载图像列表,并将它们异步添加到 UINavigationController 内的 UIScrollView 中,其后退按钮为“后退”。 Then add a UIToolBar which has the items 'Next' and 'Previous' (use images).然后添加一个 UIToolBar,其中包含项目“下一个”和“上一个”(使用图像)。 That will give you the look of a photo gallery.这会给你一个照片库的外观。

Also, I came across this which is basically what I told you to do, but open source: http://www.cocoacontrols.com/platforms/ios/controls/fgallery另外,我遇到了这基本上是我告诉你要做的,但是开源: http://www.cocoacontrols.com/platforms/ios/controls/fgallery

I wrote a tutorial on building a media gallery using a UICollectionView.我写了一篇关于使用 UICollectionView 构建媒体库的教程。 It populates from the user's photo library, but is definitely more extensible than using a 3rd party.它从用户的照片库中填充,但绝对比使用第 3 方更具可扩展性。

iPhone Programming Tutorial: Creating An Image Gallery Like Over – Part 1 iPhone 编程教程:创建像 Over 一样的图像库 - 第 1 部分

Hope that helps.希望有帮助。 Cheers!干杯!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM