检查iphone上的互联网连接不工作

问题描述:

我尝试过许多代码来检查来自Apple文档和其他来源的互联网连接。

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

问题是如果地址是google.com return TRUE ,如果它的gydsddsds.com返回 FALSE ,但如果我从互联网断开我的电脑,再次返回真的

The problem is that if the address is google.com return 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