anf超时时间设置

进入AFURLRequestSerialization.m 找到 - (NSMutableURLRequest *)requestWithMethod:(NSString *)method URLString:(NSString *)URLString parameters:(id)parameters error:(NSError *__autoreleasing *)error 方法,在mutableRequest.HTTPMethod = method的下面添加mutableRequest.timeoutInterval = 你想设定的时间;

你可能感兴趣的:(anf超时时间设置)