ErrorKit icon indicating copy to clipboard operation
ErrorKit copied to clipboard

Use of UIAlertController instead of UIAlertView

Open afocsa opened this issue 8 years ago • 1 comments

As per Apple doc, it looks like UIAlert​View, UIAction​Sheet are deprecated in iOS 8. (Note that UIAlert​View​Delegate, UIAction​Sheet​Delegate are also deprecated.)

Could ErrorKit be updated to use UIAlertController, instead, for iOS >= 8 ? Thanks.

afocsa avatar Apr 05 '17 13:04 afocsa

ErrorKit can be updated for iOS 8 😃 I will look into it as soon as I can.

In the meantime, if you don't want to use deprecated APIs (bear in mind that UIAlertView hasn't been obsoleted yet and it is still available) you can simply override - [UIApplication presentError:delegate:didPresentSelector:contextInfo:] and - [UIApplication presentError:] methods and present errors using UIAlertController.

hectr avatar Apr 09 '17 18:04 hectr