I noticed that when I load the UIImagePickerController and I take a picture with it, it gets called didReceiveMemoryWarning. In addition, there is a significant memory leak in the Tools (not me, I swear!). I heard that this is a problem with the UIImagePickerController, but I'm not sure how to fix it. Here is my implementation of UIImagePickerController.
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
imagePicker.delegate = self;
imagePicker.allowsEditing = YES;
imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera;
[self presentModalViewController:imagePicker animated:YES];
[imagePicker release];
Any ideas? I really don't want to sacrifice such a useful feature.
source
share