我是Objective-C的新手,我在此代码中遇到以下问题:
NSLog(@"Path: %@", _nomFile); //show--> Path: /Users/heberthdeza/Library/Application Support/iPhone Simulator/6.1/Applications/75184CE7-6CCD-4E5E-ABD1-E150CB35164E/Documents/discovery/IOS-4F55A50D-A3C7-4090-9969-F186C0501F89-23172117.zvg
FILE *fp;
fp=fopen([_nomFile cStringUsingEncoding:NSASCIIStringEncoding],"rb");
if (fp==NULL) {
NSLog(@"ERROR");
}
fopen
始终返回NULL
(并显示“错误”)。我做错了什么?