// 设置超时时间为10秒
[manager.requestSerializer willChangeValueForKey:@"timeoutInterval"];
manager.requestSerializer.timeoutInterval = 10.f;
[manager.requestSerializer didChangeValueForKey:@"timeoutInterval"];
// 设置超时时间为10秒
[manager.requestSerializer willChangeValueForKey:@"timeoutInterval"];
manager.requestSerializer.timeoutInterval = 10.f;
[manager.requestSerializer didChangeValueForKey:@"timeoutInterval"];
本文标题:设置 AFNetworking 网络请求的超时时间
本文链接:https://www.haomeiwen.com/subject/szpadqtx.html
网友评论