I am using Swift to write an app and I need to show an alert. The app must be iOS 7 and iOS 8 compatible. Since UIAlertView has been replaced with UIAlert
UIAlertView
UIAlert
If you want to be compatible with iOS 7, just don't use UIAlertController. Simple as that.
UIAlertController
UIAlertView has not been replaced, it still works perfectly and will continue to work perfectly for the foreseeable future.