iOS 获取高速随机路径sandbox目录

    NSLog(@"%@", NSHomeDirectory());//沙盒主目录
    NSLog(@"%@", NSTemporaryDirectory());//砂箱tmp目录路径
    NSLog(@"%@", [[NSBundle mainBundle] bundlePath]);//砂箱*.app路径包
    NSLog(@"%@", [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject]);//砂箱document目录路径

版权声明:本文博客原创文章。博客,未经同意,不得转载。

原文地址:https://www.cnblogs.com/lcchuguo/p/4662482.html