アプリケーションを介してインターネットからmp3ファイルをダウンロードする必要があり、NSURLConnectionと接続要求を使用する解決策を見つけました。これが私のコードです(別のよくある質問のコード)
 - (IBAction)downloadData:(id)sender
 {
    NSURL *myURL = [NSURL URLWithString:@"http://www.example.org/mp3song"];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:myURL cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:60];
   [[NSURLConnection alloc] initWithRequest:request delegate:self];
 }
 - (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response 
 {
   responseData = [[NSMutableData alloc] init];
 }
 - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data 
 {
   [responseData appendData:data];
 }
  - (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error 
  {
   [responseData release];
   [connection release];
  }
 - (void)connectionDidFinishLoading:(NSURLConnection *)connection 
 {
    NSLog(@"Succeeded! Received %d bytes of data",[responseData
                                               length]);
    NSString *txt = [[[NSString alloc] initWithData:responseData encoding: NSASCIIStringEncoding] autorelease];
 }
この応答データ mp3 ファイルを iPhone のローカル ファイルに保存するにはどうすればよいですか?