Reputation: 3482
setReachabilityStatusChangeBlock can get status when network reachability changed, but it can not get status when App Launch.
I know Reachability can do this, but I don't know whether AFNetworking has this feature ?
Upvotes: 0
Views: 3215
Reputation: 20021
networkReachabilityStatus
The reachability status from the device to the current baseURL of the AFHTTPClient.
@property (readonly, nonatomic, assign) AFNetworkReachabilityStatus networkReachabilityStatus
Discussion
The reachability status from the device to the current baseURL of the AFHTTPClient.
Warning: This property requires the SystemConfiguration framework. Add it in the active target’s “Link Binary With Library” build phase, and add #import to the header prefix of the project (Prefix.pch).
Declared In AFHTTPClient.h
Upvotes: 0