How to open Saved Photos Album when touch a button? [duplicate] - ios

I am trying to write an app which involves picking a picture from either camera or library. Once the picture is picked , I want to show the preview of the picture.It happens by default when camera is opted. Once the photo is clicked, it shows the user to choose or retake. But I want the same to be done when the picture is selected from the photo library also. Can this be done??

Ok thanks for the response. Here is what I did:
Subclass UIImagePickerController . Upon picking an image, I am pushing another viewcontroller which is similiar to preview screen. This is similiar to facebook app and so I think it will get approved by apple.

I may be wrong, but I think you need to implement the custom view yourself. You can use the delegate callback method to get the selected image and put it on your custom view along with buttons (choose or retake).

Related

need custom LibraryPicker with initial image on custom cameraOverlay UIImagePickerController iOS8

I'm wondering how I can add the default Library picker button that can be found on an iPhone's default Camera app(can also be accessed via dashboard). The button looks like this, though this is an app custom implementation:
So I know that it can be done, but how? It's the library image picker that you can see the taxi car in. I'm using a completely customized UIImagePickerController through the use of the imagePickerController's property customOverlay view and I need to add this very same button to my overlayView. If someone could guide me towards a solution that'd be of great help, thanks!
I can imagine using UIImagePickerControllerSourceTypePhotoLibrary for the button and simply setting the button's imageView property to the first picture in the camera roll, but how would I go about doing this?
Also, is this somehow controllable by iOS default UIImagePickerController

How to use the iOS Photos app built in edit feature in code

You will notice in the iOS Photos app, when you tap a image, the right bar button item is edit, when you tap the edit, the image editor appears. I am wondering is there any API that I can implement so I can present this editor view controller in my code?
Of course you should present an UIImagePickerViewController an then set allowsEditing value true to present a editor after select the photo
Then with the UIImagePickerDelegate protocol you will be able to get the edited picture
UIImagePicker documentation

UiImagePicker custom part

in my app and I'm using UiImagePicker also implemented UiNavigationControllerDelegate for some customizations as the delete key and the back button.
When the user browses the images from its library and chooses one, if you AllowEditing is enabled, the image picker shows a screen for cropping the photo ..
At the bottom of this view seems to be a TabBar controller with two buttons:
Choose Cancel and
I wanted to know if anyone knows how to change the text of these buttons ...
Can you help?
There is no supported API that gives you the ability to customize those buttons.
Perhaps the best solution is to find a custom replacement for UIImagePickerController. There may be one on github or Google code.

Collection view selection like photo library

I have created a UIActionSheet that can display to the user, "Choose Existing Photo" and "Take Photo"
They work just fine. However, instead of choosing an existing photo from the user's library, I want to have them select a premade icon set that I will provide in a UICollectionViewController.
When doing the camera roll, it's as easy as using the line
mediaPicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
where mediaPicker is a UIImagePickerController.
I'm sure what I am trying to do is close to the same lines. I have a UICollectionViewController with the icons displayed there, and I want the user to choose one of those so, the exact same functionality of the choosing from photo library.
Any ideas?
Thanks
You need to customize your own UIImagePickerController.
Some people created classes for that.
You can find one example here and another here.

How to show the 'preview' screen after picking a photo using UIImagePickerController

In my project, i am using UIImagePickerController to allow the user to pick a photo from the iDevice gallery (that is from the saved images, NOT camera)
I would like to present the preview screen as done when picking an image in the native messages app (it has 'cancel/choose button at the bottom)
I tried setting the allowEditing to YES, but the result is 'Move and Scale' which i dont want.
Is there a way to do it, or do i need to create this 'preview' view in my app?
Sorry for the bad news, but the Move and Scale is a view you'll have when setting allowEditing to YES. If you want something else, you'll have to built it by yourself (or to find some open source for it)...

Resources