0

I was wondering how to manage a way to loading datas asynchronously when the network is back. I mean, can I know if the network is back on the device ? Or do I have to perform a recursive call on my asynchronous method each times that the datas aren't retrieved ? I tried to do a loop that way, but the cpu is exploding and of course it's not possible to let it that way. Anyone has an idea on that subject ?

Thank you

Jeromiin
  • 71
  • 7
  • possible duplicate of [When should I check for internet connectivity](http://stackoverflow.com/questions/8660284/when-should-i-check-for-internet-connectivity) – AJ9 Jul 23 '14 at 10:46
  • 1
    This might help - http://stackoverflow.com/questions/8660284/when-should-i-check-for-internet-connectivity and for general internet connectivity this article - http://stackoverflow.com/questions/8812459/easiest-way-to-detect-a-connection-on-ios – AJ9 Jul 23 '14 at 10:46
  • You can use Reachability class to know the network status. – Raghav Jul 23 '14 at 10:47

0 Answers0