How can I access the photo library in iOS? - ios

Is there any way to jump into photo library ?
I'm not asking about UIImagePicker.
In original camera app of iPhone, when I touch a thumbnail of one of the last photos (at the bottom left corner), it goes into photo library (actually, camera roll).
Is that private API or can i use it somehow? Well, I think I can implement that using ALAsset but I'm just wondering if there is any API

I believe you can launch the photo app, in order to view it as you would normally. However you cannot return to your app after launching the photo library.
You'll need to launch com.apple.camera

Related

Launch photo library without using uiimagepicker

I am working on a camera app. I need to adapt the same behavior of the default camera app which opens camera roll when you tap the image on the left corner.
How I can launch camera roll as the default app does? I do not want to get an image, so I don't need to use the UIImagePickerController
Thanks in advance
You can use Photos Framework Available from iOS 8.Using this framework,you will get direct access to photos.You can build your own image editing apps using this Framework.
Please download the sample code from this link :
Photos framework sample code

How to incorporate editing features in native camera in IOS

I have an application that allows user to click a photo and upload I want to allow the user to also be able to rotate or crop after they take the image
How can I do it I am new to development any sources or tutorials that can help?
I am developing using Objective-C.
You can find Apple's sample code on capturing photos here.
There is a property named allowsEditing in the UIImagePickerController. Try playing with that.

How to add image picker with camera button to iOS app

I'm adding a button that opens a view of the saved images on device, but also has a button to open the camera. The iOS Facebook app currently does this.
I've played with both AVCapture to create my own camera ui and UIImagePickerController to use the default UI but have been unable to find a view that displays both the saved images and camera button.
My question is, did facebook implement their own image picker or is it an Apple included library?
Thanks!
Facebook has their own imagepicker subclass but that doesnt matter for you - just implement a different method for each button that changes the imagepickertype to UIImagePickerControllerSourceTypeCamera or UIImagePickerControllerSourceTypeSavedPhotosAlbum and then displays the picker.
This came across this control AQPhotoPicker. Hopefully it will help you, it's easy to use

Take photos in iOS without preview screen

Is there a way to use a UIImagePickerController to take photos without each photo going to the Preview screen?
I need for my users to be able to take multiple photos and right now they must hit a button to open the camera, hit the shutter button, and then hit the Use button on the Preview screen. Is there any way cut off this last step and skip the Preview screen altogether?
Here's a tutorial using AVFoundation with which you can take photos using a live camera preview styled and sized as you wish and without the annoying confirmation wiew.

Open camera roll on an exact photo

I'm developing a camera application where I'd like to put some functions that are already present in the stock app. My problem is replicating the little square in the bottom left corner (in portrait mode) where the micro-thumbnail of the photo that the user has just taken is shown; then, when the user tap on it, the photo app should open, on the last photo saved in the camera roll.
I can load the thumbnail of the newest photo in camera roll with ALAssetsLibrary - I've access to it with [UIImage imageWithCGImage:[result thumbnail]] - but even if I have its ALAsset URL, I can't open the photo app. I'm trying to do it with:
[[UIApplication sharedApplication] openURL:result.defaultRepresentation.url];
But nothing happens.
I could display it internally in my app, with an additional UIView, but I think will be simpler and... smarter to use the official photo app!
Can anyone help me? Thank you in advance!
You may want to use the UIImagePickerController, as answered here: https://stackoverflow.com/a/11078182/883413

Resources