阅读背景:

在继续[Obj-C]之前检查文件是否存在

来源:互联网 

currently here is my code

目前这是我的代码

NSFileManager *fileManager = [[NSFileManager alloc] init];

BOOL receiptExists = NO;
BOOL didLog = NO;

while (!receiptExists) {

    receiptExists = [fileManager fileExistsAtPath:PATH];

    if (!didLog) {
        NSLog(@"[NOTICE]: Waiting for the file to appear...\n");
        didLog = YES;
    }
}
// rest of the code
NSFileM



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: