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

你好,为啥工具类判断网络状态用不了 #2

Open
InsectQY opened this issue Dec 28, 2016 · 2 comments
Open

你好,为啥工具类判断网络状态用不了 #2

InsectQY opened this issue Dec 28, 2016 · 2 comments

Comments

@InsectQY
Copy link

HTTPClient文件里的这个方法,不管有没有网络都会返回没有网络,但是startMonitoring的监听回调正常。

  • (BOOL)isReachable {

// return YES;
return _sharedHTTPClient.reachabilityManager.reachable;

}

@MacOMNI
Copy link
Owner

MacOMNI commented Dec 29, 2016

印象中,AF 只有第一次 判断会出现迟缓的现象,所以我一直弃用;你可以尝试其他网络判断的,作为替代。

@InsectQY
Copy link
Author

好的,从你 demo 里学到了很多东西,谢谢!

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

2 participants