次の方法で、ASIHTTPRequest を使用してファイルをダウンロードします。
ASIHTTPRequest *request;
request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:downloadServer]];
[request setUserInfo:[NSDictionary dictionaryWithObject:@"download" forKey:@"download"]];
[request setDidFinishSelector:@selector(downloadIsFinished:)];
[request setDidFailSelector:@selector(downloadIsFailed:)];
[request setDelegate:self];
[request setTimeOutSeconds:40];
[request setDownloadProgressDelegate:self];
[request setShowAccurateProgress:YES];
[request startAsynchronous];
Wifi を使用している場合はすべて問題ありませんが、3G を使用している場合は、メソッドがファイルをダウンロードしようとしますが、10 秒後に downloadIsFinish デリゲートが起動しますが、ファイルは実際にはダウンロードされていません..