更新时间:2022-02-17 15:37:39
这是绝对正确的。
它将触发 kReachabilityChangedNotification
通知,告知您新的可达性状态。
It will fire off a kReachabilityChangedNotification
notification that tells you the new reachability state.
你得到的新的可达性状态如下:
You get the new reachability state something like this :
- (void)reachabilityChanged:(NSNotification *)notification {
Reachability *reachability = notification.object;
if (NotReachable == reachability.currentReachabilityStatus)
NSLog(@"No longer reachable");
}