Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已将 Reachability v2.2 集成到我的应用程序中。我只是想知道有时 iPhone 连接到 Wifi 但无法访问互联网。那么我怎样才能找到这个东西呢?
请正确解释任何回答此问题的人。我想在标签上显示连接受限或无连接。
Reachability *reachability = [Reachability reachabilityWithHostName:@"http://google.com"]; NetworkStatus status = [reachability currentReachabilityStatus];