I am developing a view-based application that requires a network connection. I want to add code so that my application throws an error when the network is unavailable.
I do not know which code or which code to enter in appdelegate (.h / .m) and / or viewcontroller (.h / .m)
Can anybody help me?
Thanks in advance:)
Have you read this post ?
Once you find yourself offline, you can just show the UIAlertView.
You can integrate this code into a method application: didFinishLaunchingWithOptions: from your appDelegate.
, " ". , , , . , , .