objective-c檢測網絡狀態

Reachability *r = [Reachability reachabilityWithHostName:@"www.apple.com"]; switch ([r currentReachabilityStatus]) { case NotReachable:// 沒有網絡鏈接 result=nil; break;
相關文章
相關標籤/搜索