Skip to content

Instantly share code, notes, and snippets.

@AhnSeongHyun
Created June 18, 2012 12:42
Show Gist options
  • Save AhnSeongHyun/2948200 to your computer and use it in GitHub Desktop.
Save AhnSeongHyun/2948200 to your computer and use it in GitHub Desktop.
GetDocPath
-(NSString*) GetDocPath //document 경로 반환
{
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
return documentsDirectory;
}
-(NSString*) DocPathAppendDirecory:(NSString*) dic
{
NSString * doc_path = [self GetDocPath];
NSString * user_path = [doc_path stringByAppendingFormat:@"/%@",dic];
return user_path;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment