I am parsing some JSON data using Http POST request and NSURLRequest. But when I have got the values under sendAsynchronousRequest I cannot use those out side of that request. Please see the example bellow:
[NSURLConnection sendAsynchronousRequest:rq queue:queue completionHandler:^(NSURLResponse *response, NSData *data, NSError *error)
{
NSError *parseError = nil;
dictionary = [NSJSONSerialization JSONObjectWithData:data options:0 error:&parseError];
NSLog(@"Server Response (we want to see a 200 return code) %@",response);
NSLog(@"dictionary %@",dictionary);
}];
My query is how can I use the dictionary value where I need it? Thanks