我收到错误
“不兼容的指针类型将'NSURL *'发送到'NSString *'类型的参数
打电话时initWithContentsOfFile:usedEncoding:error:
- (NSMutableArray *)qBlock{
NSURL *url = [[NSURL alloc] initWithString:@"http://addressToPath.php"];
NSError *error = nil;
NSStringEncoding encoding;
NSString *response = [[NSString alloc] initWithContentsOfFile:url
usedEncoding:&encoding
error:&error];
const char *convert = [response UTF8String];
NSString *responseString = [NSString stringWithUTF8String:convert];
NSMutableArray *sample = [responseString JSONValue];
return sample;
}