I am using the following code for an image picker. But when I run it in the simulator, I have a memory leak and I get a warning about presentModalViewcontroller:animat
presentModalViewcontroller:animat
Use:
[self presentViewController:imagePicker animated:YES completion:nil];
And then for your dismissal modal use:
[self dismissViewControllerAnimated:controller completion:nil];
or
[self dismissViewControllerAnimated:YES completion:nil];