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

被折叠的 条评论
为什么被折叠?



