0

这给了我...

NSString *filename2 = [NSString stringWithFormat:@"/newFile.json"];

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,     NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *getImagePath = [documentsDirectory stringByAppendingPathComponent:[NSString stringWithFormat:@"%@", filename2]];

[self.restClient loadFile:filename2 intoPath:getImagePath];


NSString *fileContent = [[NSString alloc] initWithContentsOfFile:getImagePath];  

SBJsonParser *parser = [[SBJsonParser alloc] init];

NSDictionary *data = (NSDictionary *) [parser objectWithString:fileContent error:nil];  

...这个错误:

文件加载到路径:(空)

...但为什么??这段代码正在查看确实加载。该文件在保管箱中,所以有什么问题

4

0 回答 0