ARC and GCD Compatible Reachability Class for iOS and MacOS. Drop in replacement for Apple Reachability
BSD 2-Clause "Simplified" License
6.98k
stars
1.26k
forks
source link
never get block called in iOS8.4 on iPhone6 #152
Open
BeingX opened 7 years ago
i use it like this,but the status block never called.
(instancetype)init { if (self = [super init]) { _reachability = [Reachability reachabilityWithHostName:DEFAULT_SITE]; __weak typeof(self) weakSelf = self; _reachability.reachableBlock = ^(Reachability*reach) { weakSelf.sNetWorkStatus = [reach currentReachabilityStatus]; };
} return self; }