HttpClient setReachabilityStatusChangedBlock declares no interface
问题 Trying to use AFNetworkings ReachabilityStatusChanged but getting "No visible @interface for HTTPCLIENT declares the selector setReachabilityStatusChangeBlock" But HttpClient has that function. Anyone know why this is happening? AFHTTPClient *client = [[AFHTTPClient alloc] initWithBaseURL:[NSURL URLWithString:@"http://stat-api.herokuapp.com/"]]; [client setReachabilityStatusChangeBlock:^(AFNetworkReachabilityStatus status){ NSLog(@"%d", status); }]; /// UPDATE /////////// Here is my .pch file