NSLog(@"%@", NSHomeDirectory());//沙盒主目录
NSLog(@"%@", NSTemporaryDirectory());//沙盒中tmp文件夹的路径
NSLog(@"%@", [[NSBundle mainBundle] bundlePath]);//沙盒中*.app包的路径
NSLog(@"%@", [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject]);//沙盒中document文件夹的路径
iOS 快速获取沙盒下任意文件夹的路径
最新推荐文章于 2020-12-29 00:15:45 发布