iOS应用程序沙盒目录结构+获取代码
获取主要目录路径的方式
沙盒目录
NSLog(@"%@",NSHomeDirectory());
MyApp.app
NSLog(@"%@",[ bundlePath]);
tmp
NSLog(@"%@",NSTemporaryDirectory());
Documents
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *docPath = ;
NSLog(@"%@",docPath);
Library
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES);
NSString *libPath = ;
NSLog(@"%@",libPath);
沙发 啊 收藏了 以后备用
{:soso_e100:}不错,谢谢分享
页:
[1]