I want to conform to the UIAlertController used in iOS 8 since UIAlertView is now deprecated. Is there a way that I can use this without breaking support for iOS 7? Is there
I think a much better way to check if a class exists (since iOS 4.2) is:
if([ClassToBeChecked class]) { // use it } else { // use alternative }
In your case, that would be:
if ([UIAlertController class]) { // use UIAlertController } else { // use UIAlertView }