How to know internet become active after disconnection in iPhone app
-
15-06-2021 - |
Pregunta
I have created an tableview that shows RSSS. I check for internet connection then get RSS feeds to load into tableview and if internet is unavailable it shows network error alert ands empty tableview is shown. But I want to load tableview when internet connection become active. Is there any way to know when internet connection becomes active after disconnection in iPhone app.
Solución
Yes, use the Reachability class.
http://developer.apple.com/library/ios/#samplecode/Reachability/Introduction/Intro.html
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow