Skip to content
This repository has been archived by the owner on Feb 19, 2021. It is now read-only.

Use of UIAlertController instead of UIAlertView #14

Open
afocsa opened this issue Apr 5, 2017 · 1 comment
Open

Use of UIAlertController instead of UIAlertView #14

afocsa opened this issue Apr 5, 2017 · 1 comment

Comments

@afocsa
Copy link

afocsa commented Apr 5, 2017

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.

@hectr
Copy link
Owner

hectr commented Apr 9, 2017

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants