//判断项目中是否有某个文件
NSString *resPath= [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"vehicle_which.pb"];
if(resPath) {
}
//判断Document中是否有某文件
NSString *docPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject];
NSString *resPath = [docPath stringByAppendingPathComponent:@"face_keypoint.pb"];
if(resPath) {
}
网友评论