获取沙盒目录
//获取沙盒目录
- (NSString *)getHomePath{
NSString *homePath =NSHomeDirectory();
return homePath;
}
//获取Document目录
- (NSString *)getDocumentPath{
NSArray *docPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentPath = [docPaths lastObject];
return documentPath;
}
//获取library目录
- (NSString *)getLibraryPath{
NSArray *libPaths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES);
NSString *libraryPath = [libPaths lastObject];
return libraryPath;
}
//获取tmb目录
- (NSString *)getTmbPath{
NSString *tmpPath = NSTemporaryDirectory();
return tmpPath;
}
获取string文件目录
//获取string路径成分
- (void)parsePath{
NSString *pa