How to implement network error notifications in my application?

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:)

+5
source share
1 answer

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.

​​, " ". , , , . , , .

+4

All Articles