How to know internet become active after disconnection in iPhone app
-
15-06-2021 - |
Question
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.
Solution
Yes, use the Reachability class.
http://developer.apple.com/library/ios/#samplecode/Reachability/Introduction/Intro.html
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow