Как получить NSURLResponse

Я делаю http-запрос к веб-серверу с помощью этого:

NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL: [NSURL URLWithString: @"http://server.com"]]; 
[request setHTTPMethod: @"POST"];
[request setHTTPBody: myRequestData];
[request setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"content-type"];
NSData *returnData = [NSURLConnection sendSynchronousRequest: request returningResponse: nil error: nil];

Но как я могу получить ответ от сервера и проанализировать его? Большое спасибо :)

5
задан Nevil Lad 27 August 2013 в 06:55
поделиться