That's absolutely right.
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");
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…