Alex
Alex

Reputation: 1581

UIAlertView is too bookkeeping to replace in iOS8 when SDK target is iOS7

UIAlertview has been deprecated, replaced by UIAlertController. it's a mess to support both iOS7 and iOS8.

What's Apple's viewpoint, when the deployment target is iOS7. Can I use UIAlertView for both ? Has anyone got their app rejected for this reason ?

thanks !

Upvotes: 0

Views: 347

Answers (2)

jverdi
jverdi

Reputation: 1506

I had this same concern, particularly when there is the possibility for this SDK to be used in an iOS 8 extension while simultaneously wanting that same SDK to support iOS 7 for non-extension uses.

It was the motivation for an open-source project I undertook to back-port UIAlertController to iOS 7.

Have a look: JVAlertController

Upvotes: 0

Alec.
Alec.

Reputation: 5535

Check this article out, the author explains pretty nicely apples thinking on the matter and it does kind of make sense.

Basically the change helps unify alerts across iOS, it is actually pretty neat.

http://nshipster.com/uialertcontroller/

You can just use UIAlertView for both still, but it could get messy in future.

Upvotes: 0

Related Questions