【iOS】沙盒目录
有关沙盒目录参考:
http://blog.csdn.net/totogo2010/article/details/7669837
获取沙盒路径,参考代码:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory=[paths objectAtIndex:0];//Documents目录 NSLog(@"NSDocumentDirectory:%@",documentsDirectory);
不过现在Mac上的路径变了,如下:
~/Library/Developer/CoreSimulator/Devices ...