04

With the iOS 8 SDK Apple has delivered a much simpler API for creating UIAlertView’s and UIActionSheet’s, but if you’re looking to support iOS 7 you can’t use the new clean and simple syntax of UIAlertController.

Here’s an open source project from Peter Steinberger that bring backwards compatibility to the iOS 8 UIAlertController API with PSTAlertController.

PSTAlertController brings the new alert controller API to iOS 7 allowing, you simply need to replace UIAlertController with PSTAlertController, program the way you would with iOS 8’s UIAlertController API and on iOS 8 the new alert controller will be used, and on iOS 7 PSTAlertController.

You can find PSTAlertController on Github here.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>