Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to take several images from Camera ios

I`m making one implementation for take photo from camera and select photo from library.

For take photos from library i`m using ELCImagePickerController and setting the images in a scrollview.

What i want to do is take several images from Camera and setting this on the same scroll view.

Current my implementation is:

- (IBAction)takePhoto:(UIButton *)sender {

        UIImagePickerController *cameraPicker = [[UIImagePickerController alloc] init];
        cameraPicker.delegate = self;
        cameraPicker.allowsEditing = YES;
        cameraPicker.sourceType = UIImagePickerControllerSourceTypeCamera;

        [self presentViewController:cameraPicker animated:YES completion:NULL];
}

- (void)imagePickerController:(UIImagePickerController *)photoPicker didFinishPickingMediaWithInfo:(NSDictionary *)info {

        [photoPicker dismissViewControllerAnimated:YES completion:NULL];
        UIImage *image=[info objectForKey:UIImagePickerControllerEditedImage];
        UIImageView *imageview = [[UIImageView alloc] initWithImage:image];
        [imageview setContentMode:UIViewContentModeScaleAspectFit];

        [self.scrollView addSubview:imageview];
        [self dismissModalViewControllerAnimated:YES];
}

With this i just can take one photo per time and when i set this again it replace the other one. How can i take serveral? and how i supose do that?

like image 951
Pedro Franco Avatar asked Jan 06 '16 12:01

Pedro Franco


People also ask

How do I get my camera to take multiple pictures?

For Android users -- Open the camera app, press and keep holding the shutter button.

How do I get my iPhone to take pictures continuously?

If you have iPhone XS, iPhone XR, iPhone 11, or iPhone 12, slide the shutter button to the left. The camera will keep taking photos until you release the shutter button. If you have iPhone X or older, just hold down the shutter button to shoot in burst mode (you don't need to drag the button).

How do I take 5 pictures on my iPhone?

Open the camera app, and, at the bottom of your screen above “PHOTO,” tap the button that says “0.5.” You can also pinch your fingers on the screen in the same way you'd zoom out of a photo to access the ultra-wide camera setting.

How do you take multiple pictures on IOS 15?

On iPhone X and earlier, you simply touch and hold the shutter button. On iPhone XS, iPhone XR, and later, you need to swipe the shutter button to the left. The counter on the shutter button shows you how many rapid-fire photos you are capturing.


1 Answers

First,I want say Thanks to Fahri Azimov, him comment on my Question but he dont asnwer it. I found the solution on CocoaControls .

There I found one Application doing what I was looking for.

RPMultipleImagePicker

What I had to do Add the controllers,models and resources from RPMultipleImagePicker. Import it on my Controller. Then change some things in Image Picker for add in my on ScrollView.

like image 83
Pedro Franco Avatar answered Oct 20 '22 04:10

Pedro Franco