# kongkong's Blog

## AFNetworking如何判别网络状态

Actually contrary to what A-Live said Reachability IS a part of AFNetworking. It's implemented inAFHTTPClient.h here. You have to have the correct imports in your .pch file as discussed here in order to use it.
To use it you'll probably want to have a subclass of AFHTTPClient so you can usesetReachabilityStatusChangeBlock defined here. Here's a simple example without using a subclass.