I got a big performance issue using UIImagePickerController
and saving the image on disk. I can\'t figure out what I am doing wrong. Here is my code:
I had a similar issue. The way I got round it was to handle the image from the picker in a seperate thread. My problem was the main thread handling my app/UI was crashing out when trying to close the picker and handle the image:
- (void)imagePickerController:(UIImagePickerController *)picker
didFinishPickingImage:(UIImage *)image
editingInfo:(NSDictionary *)editingInfo
{
[[picker parentViewController] dismissModalViewControllerAnimated:YES];
NSLog(@"picker did finish");
[NSThread detachNewThreadSelector:@selector(useImage:) toTarget:self withObject:image];
}