xars
xars

Reputation: 17

Test internet connectivity on iPhone simulator

On the iPhone simulator, WiFi is always on, and I can't test the internet connection with the Reachability functions. If I use NSURLConnection and contact, for example, Google, I wi

Upvotes: 0

Views: 8001

Answers (1)

Damien
Damien

Reputation: 2421

Not sure exactly what your question is, but if it's how to turn simulate having no network on the simulator then here is the answer:

The simulator just uses your default Mac network connection so do what you need to do to disconnect your mac from the network and the simulator will experience the same loss of network connectivity.

For me, I use WiFi on my mac so when I want to test the Reachability class then I just us the "Turn Airport off" option on my mac.

Upvotes: 5

Related Questions