For instance, let's say my iOS-application supports down to iOS 7.0, and I want to make an alert. In iOS 7, I would use UIAlertView
. In iOS 8/9, this has been deprecated by UIAlertController
. Do I have to check if currentVersion > iOS7
, and then create BOTH alerts, an alertView
for iOS7 and an alertController
for iOS8+? Or is it okay to use UIAlertView
in an iOS7-app, even though it will be running on iOS9+ devices eventually?
Will I ever need to check what the current iOS-version is, and implement multiple objects (one for each version), in simple matters like this?