Reputation: 3345
I am working on a educational related apps. My app functionality is working well when the WIFI is connected otherwise it is getting crashed.
So, how can I know my app is connected with the wifi or not?
Upvotes: 0
Views: 217
Reputation: 3330
The following link consists source code, in which it consists how to check the reachability. That means the wifi or any network is connected of not.
http://developer.apple.com/library/ios/#samplecode/Reachability/Introduction/Intro.html
Upvotes: 2
Reputation: 52565
Apple provides sample code called "Reachability" to detect when the network is available. That would be a good starting point, though a quick Google should locate some alternatives.
Upvotes: 0