I have to download (in asynchronous mode) and get data from a file that is generated from a server.
So I call the method that does this into the app delegate, and everything is okay.
I’d like to check the internet connection, and if there isn’t one, make the method to listen for when connection will back, and then download the file.
My question is: how can I do this?
You can use the apples reachability class see this
Reachability is one sample provided by Apple for this.(Description
Reachability.h file
Reachability.m file
For more information of how to use it. Just refer the above link.