I am trying to use the camera API to take a picture but when I try using
[self presentingViewController:picker animated: YES];
I keep getting an error saying:
No visible @interface for ‘MainViewController’ declares the selector ‘presentingViewController:animated:’
and I can’t seem to figure out how to fix it.
Should be
[self presentModalViewController: picker animated: YES](now deprecated)or
[self presentViewController:picker animated:YES completion: NULL];Check out the
UIViewControllerclass reference for more details