With the release of iOS 8, Apple gave us new and better way of handling
modal alerts. However, the new API doesn’t work on earlier versions of
iOS. For those of us who need to support them, this usually means a
lot of code duplication and polluting the code with conditions while trying
to support both UIAlertView and UIViewController.
To get rid of those problems, we’ve developed a small library called
GUNAlert. It makes displaying alerts simple on all iOS versions.
Here’s how it can help you in your project.