问题 -(NSDictionary *)fetchFromUrl:(NSString *)url{ NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:url]]; NSURLSession *session = [NSURLSession sharedSession]; NSURLSessionDataTask *task = [session dataTaskWithRequest:request completionHandler: ^(NSData *data, NSURLResponse *response, NSError *error) { dataFetched = [NSJSONSerialization JSONObjectWithData:data options:0 error:NULL]; }]; [task resume]; NSLog(@"dataFetched, %@", dataFetched); return dataFetched; } So I