We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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]; };
_reachability.unreachableBlock = ^(Reachability*reach) { weakSelf.sNetWorkStatus = [reach currentReachabilityStatus]; NSLog(@"UNREACHABLE!"); }; [_reachability startNotifier];
} return self; }
The text was updated successfully, but these errors were encountered:
when restart system ,it normal again,it confuses me
Sorry, something went wrong.
No branches or pull requests
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;
}
The text was updated successfully, but these errors were encountered: