I have a UIImagePickerController that is used to upload images to a database. It loads photos from two sources, camera and camera rolls, when I load a photo from the camera allows me to take a picture and choose if I want to retrieve the photo or use it when I want to use the camera Loading photos from the roll, I can choose which photo library I want to use but only get a tile preview of all photos in the library I can. When I click on tiled photo preview it automatically loads automatically into the database without full preview. How can I make it so that when I load a photo from the camera roll, how do I load it from the camera, just as it allows to preview the image before using it? Here's what I use to specify the UIImagePickerController type, data source and initial settings.
UIImagePickerController * imgPicker = [[UIImagePickerController alloc] init]; ImgPicker.delegate = self; ImgPicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; [Self present ViewController: animated imgPicker: yes complete: zero];
You have two options:
- You You can use the
editing permission property, set it to YES and the last step will be a "preview". Surely the user of the selected photo can move and scale the photo from that preview, so it may not be the way you want it. - Preview your own code it will be a simple view controller that when you select a photo from the gallery, you will enter
UIImagePickerController . The simplest solution will be to cover only one UIImageView all screen, and select another photo to select two buttons in the navigation bar or select preview one.
No comments:
Post a Comment