[Objective-C] ios开发中检测指定路径的文件是否存在的代码 →→→→→进入此内容的聊天室

来自 , 2021-04-22, 写在 Objective-C, 查看 153 次.
URL http://www.code666.cn/view/251c5ffd
  1.   NSFileManager *fileManager = [NSFileManager defaultManager];
  2.    //Get documents directory
  3.    NSArray *directoryPaths = NSSearchPathForDirectoriesInDomains
  4.    (NSDocumentDirectory, NSUserDomainMask, YES);
  5.    NSString *documentsDirectoryPath = [directoryPaths objectAtIndex:0];
  6.    if ([fileManager fileExistsAtPath:@""]==YES) {
  7.         NSLog(@"File exists");
  8.     }    
  9. //objectc/8538

回复 "ios开发中检测指定路径的文件是否存在的代码"

这儿你可以回复上面这条便签

captcha