NSStringの* strURL = [NSStringのstringWithFormat: "%の@アクション= getResForOffer & offerid =%@" @、SERVER_URL、strOfferID]を遅らせています。、高速応答を与えることなく、デバイスで、それは応答
NSURL *url = [NSURL URLWithString:[strURL stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
NSMutableURLRequest * request = [NSMutableURLRequest requestWithURL:url];
[request setHTTPMethod:@"GET"];
[request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
[NSURLConnection sendAsynchronousRequest:request queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *error)
{
if (error)
{
NSLog(@"%@",error.description);
}
else
{
NSMutableArray * arrJsonData = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
NSLog(@"Json Data --> %@",arrJsonData);
if (arrJsonData.count)
{
}
}
}];