我正在尝试将pdf文件保存到NSData但收到错误,代码如下:
NSData *data = [NSData dataWithContentsOfFile:@"cool.pdf"];
PFFile *image = [PFFile fileWithName:@"image.pdf" data:data];
[image saveInBackground];
错误是:'NSInternalInconsistencyException', reason: 'Could not save file data for image.pdf : (null)
image.pdf只是我放入项目的文件。我是否必须提供通往此的路径?任何帮助将不胜感激!感谢