ajay
ajay

Reputation: 3345

Issue with the wifi in iPad

I am working on a educational related apps. My app functionality is working well when the WIFI is connected otherwise it is getting crashed.

  1. In my app I am connecting with the server using NSURLRequest class its working.
  2. the download also not having any problem if the wifi is available. problem rectification: I have to know weather the my app device is connected with external network or not.

So, how can I know my app is connected with the wifi or not?

Upvotes: 0

Views: 217

Answers (2)

Satya
Satya

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

Stephen Darlington
Stephen Darlington

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

Related Questions