次のコードを使用して、アプリケーションでデータをダウンロードしようとしています
NSURL *url = [NSURL URLWithString:@"my download url string"];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:60.f];
NSURLConnection * connection = [NSURLConnection connectionWithRequest:request delegate:self];
[connection start];
しかし、問題は時々次のエラーが発生することです
Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo=0x1d5be240
{NSErrorFailingURLStringKey=http://dr282zn36sxxg.cloudfront.net/datastreams/f-
d%3Afc7f649e1e3ba58452f67e3fa1f66f69a15b96b3ea585c946e4fa854%2BEPUB%2BEPUB.1,
NSErrorFailingURLKey=http://dr282zn36sxxg.cloudfront.net/datastreams/f-
d%3Afc7f649e1e3ba58452f67e3fa1f66f69a15b96b3ea585c946e4fa854%2BEPUB%2BEPUB.1,
NSLocalizedDescription=The request timed out., NSUnderlyingError=0x1e1975b0 "The request
timed out."}
だから、誰でもこれを解決する方法を提案できますか。. .