最終更新:2010-06-07 (月) 05:32:18 (5072d)
NSURLDownload
Top / NSURLDownload
Web上のデータをファイルに保存するクラス
NSURLRequest *req; req = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.example.com/"] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:60.0]; // 呼び出しを受け取るためのオブジェクトを生成 myUrlDownloadDelegate *del = [[myUrlDownloadDelegate alloc] init]; NSURLDownload *d; // myUrlDownloadDelegateへdelegateしながら初期化 d = [[NSURLDownload alloc] initWithRequest:req delegate:del];
関連
- NSURLRequest
- NSURLConnection (ファイルに保存をしない)