I'm new for development learning to parsing the data and how to work with synchronous and asynchronous requests.
NSString *url=@"http://content.guardianapis.com/search?api-key=test";
NSURLRequest *request=[NSURLRequest requestWithURL:[NSURL URLWithString:url]];
NSError *error=nil;
NSURLResponse *response;
NSData *content=[NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error];
NSString *string=[[NSString alloc]initWithData:content encoding:NSUTF8StringEncoding];
NSLog(@"response %@",string);
I receive a warning at the sendSynchronousRequest
line. How do I process this asynchronously web request and get the response data. Explain difference of both.