美文网首页
iOS 判断项目中是否有某个文件

iOS 判断项目中是否有某个文件

作者: 隔墙送来秋千影 | 来源:发表于2020-08-12 17:30 被阅读0次
//判断项目中是否有某个文件
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) {

}

相关文章

网友评论

      本文标题:iOS 判断项目中是否有某个文件

      本文链接:https://www.haomeiwen.com/subject/hmzpdktx.html