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
The warning is still there. In order to get rid of it I put it into a selector like this:
if ([self respondsToSelector:@selector(dismissModalViewControllerAnimated:)]) {
[self performSelector:@selector(dismissModalViewControllerAnimated:) withObject:[NSNumber numberWithBool:YES]];
} else {
[self dismissViewControllerAnimated:YES completion:nil];
}
It benefits people with OCD like myself ;)