このブロックを呼び出すと:
NSURLSession *session = [NSURLSession sharedSession];
[[session dataTaskWithURL:url
completionHandler:^(NSData *data,
NSURLResponse *response,
NSError *error) {
_data = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:nil];
_label.text = [NSString stringWithFormat:@"%@°",([[[self.data objectForKey:@"main"] objectForKey:@"temp"] floatValue]) - 273.15)];
NSLog(@"%@",self.data);
}] resume];
NSLog が呼び出されても、ブロック内のコードの実行に時間がかかります - 何が起こっているのでしょうか? あらゆる種類のソリューションを試しましたが、何も機能していません。