天天看点

【iOS】沙盒目录

·

获取沙盒路径,参考代码: 

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory=[paths objectAtIndex:0];//Documents目录
NSLog(@"NSDocumentDirectory:%@",documentsDirectory);      
~/Library/Developer/CoreSimulator/Devices ...