开发者

wifi on iphone simulator

开发者 https://www.devze.com 2023-03-06 08:56 出处:网络
can i disable wifi in iphone simultaor to test my app? I disconnect pc fro开发者_如何转开发m network, but the icon of wifi on iphone simulator is always on.After disabling your network connection, the

can i disable wifi in iphone simultaor to test my app? I disconnect pc fro开发者_如何转开发m network, but the icon of wifi on iphone simulator is always on.


After disabling your network connection, the icon is still present showing it as enabled, but the connection is of course dead. If you are using the Reachability class or just attempting to ping a URL to verify a connection, the simulator will respond the same way a device with disabled Wifi would, which makes testing on the simulator under these conditions pretty accurate.

0

精彩评论

暂无评论...
验证码 换一张
取 消