开发者

iOS photo gallery - flickr

开发者 https://www.devze.com 2023-03-20 05:59 出处:网络
I\'m working on an app for a client and the client wants absolutely everything to be shareable (using sharekit). One of the views that the client wants is a photo gallery that can be easily updated an

I'm working on an app for a client and the client wants absolutely everything to be shareable (using 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 fol开发者_高级运维ks who have done this and I particularly like the way the Obama 2012 app does it using 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. 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". Then add a UIToolBar which has the items 'Next' and 'Previous' (use images). 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


I wrote a tutorial on building a media gallery using a UICollectionView. It populates from the user's photo library, but is definitely more extensible than using a 3rd party.

iPhone Programming Tutorial: Creating An Image Gallery Like Over – Part 1

Hope that helps. Cheers!

0

精彩评论

暂无评论...
验证码 换一张
取 消