开发者

Check internet connection on iphone doesn't work

开发者 https://www.devze.com 2023-03-06 02:15 出处:网络
I\'ve tried many code to check internet connectivity from Apple docs and other sources. The problem is that if the address is google.com return 开发者_StackOverflow中文版TRUE, if it\'s gydsddsds.com

I've tried many code to check internet connectivity from Apple docs and other sources.

The problem is that if the address is google.com return 开发者_StackOverflow中文版TRUE, if it's gydsddsds.com return FALSE, but if I disconnect my PC from Internet it return again TRUE!

Have you got a really working method please?


Use reachability class . It checks the network connectivity

0

精彩评论

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