0

i've been searching around the web but couldn't find an answer. basically i wanna take two photos one right after the other. i'm using UIImagePickerController to show a picker and implementing didFinishPickingMediaWithInfo. when it gets called i'm checking my count so that if its one, i implement a block and pass it to dismissViewControllerAnimated like this:

if(1 == count) {
    void (^simpleBlock)(void);
    simpleBlock = ^{
        [self useCamera];
    };

    [self dismissViewControllerAnimated:NO completion:simpleBlock];
}

it all seems to work fine, and even the useCamera method is called. the problem is that the second time the picker shows i see all of its controls but i don't see on the screen the image from the camera.

any help would be appriciated.

Max
  • 799
  • 1
  • 5
  • 17

3 Answers3

2

i managed to work it out with replacing the call to useCamera with:

[self performSelector:@selector(useCamera) withObject:nil afterDelay:0.3];

i think my question has some relation to: iOS 7 UIImagePickerController has black preview since the delay fixed the problem.

Community
  • 1
  • 1
Max
  • 799
  • 1
  • 5
  • 17
0

For you to save time. You can use available library out there. These are my good choices. CTAssetsPickerController ELCImagePickerController

Rhenz
  • 2,293
  • 1
  • 14
  • 14
  • thanks, i think i looked at those libs already, they let you multiple choose photos from your photo library and not multiple 'take picture' – Max Mar 18 '15 at 14:04
0

UIImagePickerController helps to access the default camera app in iOS.

It will allow only limited functionalities like take picture/video, photo album.

kart
  • 45
  • 11