Code for detecting the existence of the file with the specified path in IOS development

From , 3 Years ago, written in Objective-C, viewed 92 times.
URL https://pastebin.vip/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

Reply to "Code for detecting the existence of the file with the specified path in IOS development"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website