iOS 判断项目中是否有某个文件
2020-08-12 本文已影响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) {
}