Skip to content
New issue

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

never get block called in iOS8.4 on iPhone6 #152

Open
BeingX opened this issue Dec 27, 2016 · 1 comment
Open

never get block called in iOS8.4 on iPhone6 #152

BeingX opened this issue Dec 27, 2016 · 1 comment

Comments

@BeingX
Copy link

BeingX commented Dec 27, 2016

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;
    }

@BeingX
Copy link
Author

BeingX commented Dec 27, 2016

when restart system ,it normal again,it confuses me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant