views:

68

answers:

0

Hi everyone! I would like to dismiss the camera view, while displaying a modal view, so this would be faster because the camera doesn't display anything.

I have set up my cameracontroller this way:

self.cameraController = [[[UIImagePickerController alloc] init] autorelease];
self.cameraController.sourceType = UIImagePickerControllerSourceTypeCamera;

And then displayed it using this code:

self.view = self.cameraController.view;

Everything works, but I would like to be able to "close the camera" before displaying the modal view.

Any suggestions?