I\'ve just upgraded to XCode 4.5 to update my iOS app to run on the 4 inch display for the iPhone 5, but I\'m getting a build error saying dismissModalViewControllerAn
Now in iOS 6 and above, you can use:
[[Picker presentingViewController] dismissViewControllerAnimated:YES completion:nil];
Instead of:
[[Picker parentViewControl] dismissModalViewControllerAnimated:YES];
...And you can use:
[self presentViewController:picker animated:YES completion:nil];
Instead of
[self presentModalViewController:picker animated:YES];