Mysterious (at least to me) issue. Here's what I'm doing
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
UIImage *neoImage = [[info objectForKey:UIImagePickerControllerEditedImage] retain];
NSLog(@"neoImage: %@", neoImage);
[self.images addObject:neoImage];
[neoImage release];
NSLog(@"self.images (inside delegate method): %@", self.images);
[self renderImages];
[picker dismissModalViewControllerAnimated:TRUE];
}
self.images declared as retained mutable array and synthesized. I must be doing something wrong though, because while the above code works as expected when the user selects an image from their camera roll, this is the NSLog output when they take a new picture:
[2690:307] neoImage: <UIImage: 0x24f160>
[2690:307] self.images (inside delegate method): (null)
I'm probably overlooking something obvious? Any help will be appreciated.
NOTE: I'm also receiving a memory warning when the camera is used:
Received memory warning. Level=1