Displaying Photos on iPhone - iphone

I'm working on an iPhone app and I need to be able to display images to users. I have already gotten the code that takes the photo and stores it into the filesystem working well. Now I just need to figure out how to display the image.
I've looked at the Three20 project I've read about on a few of the posts here, but it seems a bit cumbersome and like an extra dependency to import link and combine all of the Three20 library into my little app.
Are there any other ways or a more streamlined library that will let me display photos to my users?
Thanks!
B.

Throw a UIImageView on the screen? Or ask a more specific question if that is not what you want.

Related

Is there an iphone photo thumbnail viewer and browser that is easy to use?

I'm adding a thumbnail photo gallery to my iPhone app which will include an iPhone Photo App-like photo browser plus a detail view for each photo. So far the only thing I've found that provides this is Three20 -- the thing is that Three20 is so huge and has a complex looking API which is not a standard Apple style interface as far as I can tell.
I've also seen this post Open source photo viewer for IPhone which mentions a couple of other photo browsers -- but these don't have thumbnail galleries built in.
My question is: does anybody know of a good combination photo-browser and thumbnail gallery library which is easy to use, not excessively large and easy to customize? Cacheing is also crucial.
I have found an answer to my own question called KTPhotoBrowser which fits the bill exactly -- just a thumbnail gallery and photo browser. Combined with SDWebImage which handles the image cacheing it appears to be a perfect simple solution that doesn't require 2 MB of code!
Update: quick to install, works with tab bar controller (example app provided!) and works like a charm. May not have all the features of Three20 but its a lot easier to use and has a much smaller footprint. TabBarController woes made the final decision, I spent several hours trying to get Three20 photo viewer to play nice with my tab controller app -- and failed! After only a half an hour of futzing I got KTPhotoBrowser working by using their tab sample app as a reference point.
I know Three20 looks huge, but it is the best from my point of view. I also had problems to start, but I was able to make it. I have sample code here on stackoverflow and on github. Check it out, you will see that is exactly what you need.

Using a UIImagePicker that only contains photos taken within the app

I'm using source code from apple (SquareCam) and I would like to figure out how I can use the photos taken in that app and see them in a library (like the photos app) without having all the other photos the user has taken elsewhere like in the regular camera.
I'm not too great at making apps yet so I'm pretty noobish.
I've gotten as far as opening the photo library but nothing else. no viewing individual photos or the options such as emailing, messaging and what not.
Don't think you can do that. It either all photos or no photos...
You can of course save the photo in your own documents directory and write your own photo viewer - there's quite some code and frameworks around that do most of the job, see e.g. the answers to this so question:
Open source photo viewer for IPhone

iOS photo gallery - flickr

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 folks 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!

creating iphone app for existing site. need advice about the data I'm downloading

I'm building an iPhone app for existing site (a local news site)
Main page with articles headers, when click on them you move to the article page. Simple.
This is the first time I'm building such type of app.
I have 3 general questions, just to make sure :
For the iphone, Do we need to
re-create the website article's
pictures for the iphone ? or there
is some programming tool that on the
fly make the files looks better on
the iphone ? or maybe, there is some
technique that creates one artice
picture that looks right both for
the server and the iphone ?
Usually, Do you need to create
special data channels from the
iPhone webservice ? or programmers
just use the existing rss channels
of the webserver ?
If someone know nice artice about
this stuff, It will help a lot. just
see what other are doing.
thanks.
You can see the intent Media apps, these apps are working like what you want your app to.
1) You're better off creating mobile versions of the images. You can do image processing on the iPhone, but you'll have to have the original and that makes the whole thing pointless (ie. you have to download the whole thing.) Generate a mobile thumbnail when those are uploaded on the server.
2) RSS will do. There's a very good tutorial at cocoadevblog.com about approaching such a task (I guess this covers 75% of the work you have to do)
3) Check 2) ;-)
if your download image is bigger the the thumbnail you are trying to display,
then the problem is in your code that change the image size. check carefully what are you doing to the image after downloading it.
I would recommend to create square thumbnails of your pictures at the server level. This will allow you to easily position in the iPhone screen, plus you will not need to download the whole image from the server.
nnahum

Adding photo upload to an iPhone App that's mostly HTML5/JS

I'm working on an iPhone App that's HTML5/JS displayed in a single UI Webview. I'd like to add photo upload capabilities, and I'm wondering what the best approach would be to extend the iPhone app with the necessary classes to pick a photo and upload via an API. I'd also like to trigger the display of the photo picker via JS if that's possible.
I know it's possible to use a framework like PhoneGap to do this, but I don't want to migrate the whole app to a new framework yet. Also, sorry for the "how to" type question - I normally ask about specific problems after I've exhausted my efforts, but I'm pretty new to Objective C, so I'd appreciate some guidance, even if it's just a simple design explanation.
the image picker (UIImagePicker) is fairly straightforward to work with: http://developer.apple.com/library/ios/#documentation/uikit/reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html
and for an API, are you sending it to an existing system? or creating your own. You just need to craft an NSMutableURLRequest with POSTED data in a multi-part format, and then handle the image portion appropriately in your server.
this might help: upload image from iPhone application