/** 拼接沙盒全路径 拼接Documents以后的相对路径
*/
- (NSString *)getAllPathWithRelativePath:(NSString *)relativePath
{
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *strResult = [paths objectAtIndex:0];
strResult = [strResult stringByAppendingPathComponent:relativePath];
return strResult;
}
网友评论