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
Related
I have ~3200 photos on my iPhone over 2 years and would like to create an app that analyzes and plots when I took these pictures (ex: I was very actively photographing for a week, and then stopped). Is there a way to do bulk processing of camera roll photos on iPhone(with user permission) to extract timestamps of photos?
I think if I back up my photos to my mac with the "image capture" app, I can do this kind of metric analysis with a Mac app, but the import process would take hours and I'm looking for something simpler.
Take a look at ALAssetsLibrary
An instance of ALAssetsLibrary provides access to the videos and
photos that are under the control of the Photos application.
Here is sample application PhotosByLocationn.
Demonstrates how to use the AssetsLibrary APIs to provide a custom
image picking UI. The user experience is centered around the idea of
using the assets location and time metadata as a basis for certain
features.
Yes you can use the Assets Library for this.
This fill allow you acces to the image on the users device.
I haven't found any documentation on this or seen this done before, but is there anyway I can, instead of just choosing one image with UIImagePicker, load the user's albums, and then after selecting an image, that image displays, but also allows me to scroll left and ride to see all the images before and after that image?
I know I can use a multiple image picker, but that involves importing all the user's photos, and if the user has hundreds of photos, this would take a lot of time. I'm looking for similar functionality to the real photos app- the performance and everything. Any ideas?
Yes, you can. Look at the documentation for ALAssetsLibrary. This will allow you to enumerate all the user's image (and video) libraries. From this, you get ALAssets, which you can ask for their default ALAssetRepresentation. This one, in turn, you ask for its CGImage, from which you can create a UIImage.
Enumerating Libraries and Assets is done in blocks, which can easily be done in the background.
Use the assets library: http://developer.apple.com/library/ios/#documentation/AssetsLibrary/Reference/ALAssetsLibrary_Class/Reference/Reference.html
An instance of ALAssetsLibrary provides access to the videos and
photos that are under the control of the Photos application.
The library includes those that are in the Saved Photos album, those
coming from iTunes, and those that were directly imported into the
device. You use it to retrieve the list of all asset groups and to
save images and videos into the Saved Photos album.
note: only available in ios 4+
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!
My iPhone App needs to be able to update and delete Photos and Videos on the phone. After seeing the new ALAssetLibrary class I was pretty excited, but now that I'm knee deep in it I'm starting to realize that perhaps Photos and Videos can not be manipulated in the ways I expect.
Just to confirm, is there really no way to update or delete Photos and Videos on iOS, or am I just using the wrong APIs?
I was able to have complete control over Contacts even back before iOS4, and I noticed there's a new API for accessing Calendars now too. Will I be able to update and delete Calendars like I can with Contacts, or should I expect it to give me a hard time like Photos are?
Thanks
There is no way to manipulate existing photos or videos using ALAssetsLibrary, the only thing you can do is save a new photo/video to the Camera Roll.
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.