i have a TabBarController in which one tab has an ImageView. Besides, i have a button to display the ImagePicker:
- (IBAction)choosePhoto {
// Create image picker controller
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
// Set source to the camera
imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera;
// Delegate is self
imagePicker.delegate = self;
// Allow editing of image ?
[imagePicker setAllowsEditing:NO];
// Show image picker
[tabBarController presentModalViewController:imagePicker animated:NO];
But the problem is that when i press the button in order to launch the ImagePicker i get the message: Received memory warning. Level=1/ Level=2.
I've tried to change the delegate to the View of the tab but it doesn't works neither.
Any idea?
Thanks