Search code examples
afnetworking-2

Why is AFNetworking still using UIAlertView though Apple says its deprecated?


See UIAlertView + AFNetworking.m

Since I am using pod install, I do not want to change this every time. Is there any workaround?


Solution

  • AFNetworking still supports UIAlertView because AFNetworking 2 supports a minimum iOS target of iOS 6.

    You can safely ignore the deprecation warnings if you're not using UIAlertView in your app (or suppress them if they're really bothering you).

    You could also open a pull request for UIKit+AFNetworking that switches over to UIAlertController when available.