How to allow iPhone user to "move and scale" a photo that is already selected

I am trying to replicate the functions that users see when they switch to edit mode for a contact for which they have already selected a photo, and then click this contact photo. The action screen moves up, with options including Take Photo, Select Photo, and Edit Photo. When you select "Edit Photo", a view appears that shows the previously selected photo, with the inscription "Move and Zoom" on top of it and the "Cancel" and "Select" buttons at the bottom. How do I show this "Move and Zoom" view for any UIImage team?

To make it clear, I already have Take Photo and Choose Photo. And I understand how to use UIImagePickerController with allowEditing = YES. I’m talking about a situation where the user has already selected a photo, and later (maybe days or weeks later) decides that they want to edit this photo. In this case, I want to open the "Move and scale" view, as it can be done in the "Contacts".

Is there a hidden way to use UIImagePickerController for this? Or some other inline method? Or do I need to build this representation myself? If I need to build it myself, any pointers?

Thanks!

+4
source share
2 answers

There is no way to do this. You will have to collapse yourself. All target applications designed for editing custom images are the only goal, so this can be done, but there is no ready-made way to get to the image editing screen, which allows Editing = YES; gets you.

0
source

You can use the new object library API to save the image in the photo library, and then run UIImagePicker and direct the user to select the image in question, and gol-darnit to edit it this time ... But this is pretty ugly.

0
source

Source: https://habr.com/ru/post/1315961/


All Articles