iOS 查找目錄

NSArray *path1=NSSearchPathForDirectori緩存

esInDomains(NSCachesDirectory, NSUserDomainMask, YES);//數據所在緩存的絕對路徑
   NSArray *path2=NSSearchPathForDirectoriesInDomains(NSDesktopDirectory, NSUserDomainMask, YES);//數據所存桌面的絕對路徑
   NSArray *path3=NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSLocalDomainMask, YES);//數據所在緩存的相對路徑
   NSArray *path4=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);//數據所在文件documents的絕對路徑
   NSArray *path5=NSSearchPathForDirectoriesInDomains(NSDocumentationDirectory, NSUserDomainMask, YES);//數據所在文件Library/Documentation的絕對路徑
   NSArray *path6=NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES);//數據所在文件Library的絕對路徑
   NSArray *path7=NSSearchPathForDirectoriesInDomains(NSAllLibrariesDirectory, NSUserDomainMask, YES);//數據所在文件Library的絕對路徑
   NSString *destPath = NSHomeDirectory();io

相關文章
相關標籤/搜索