ios判断本地文件是否存在

NSString *path = [[NSBundle mainBundle] pathForResource:fileName ofType:@""];

    if(path==NULL)

        return NO;

    returnYES;
 

猜你喜欢

转载自lijinfengjava.iteye.com/blog/1749172