I use UIImagePickerController so that the user can select an image in my application, either by taking a new pic or selecting an image from the gallery. Using the gallery, the application works fine. But if I use the camera as a source, the application uses a lot of memory and will eventually be killed after it becomes very slow.
Can someone tell me the best way to use UIImagePickerControllerSourceTypeCamera.
This is the code I'm using.
if(![UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera])
return;
picker = [[UIImagePickerController alloc] init];
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
picker.delegate = self;
[[self navigationController] presentModalViewController:picker animated:YES];
[picker release];
source
share