// 取得沙盒目录 NSString *localPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject]; // 要检查的文件目录 NSString *filePath = [localPath stringByAppendingPathComponent:@"abc.doc"]; NSFileManager *fileManager = [NSFileManager defaultManager]; if ([fileManager fileExistsAtPath:filePath]) { NSLog(@"文件abc.doc存在"); } else { NSLog(@"文件abc.doc不存在"); }