Created
June 18, 2012 12:42
-
-
Save AhnSeongHyun/2948200 to your computer and use it in GitHub Desktop.
GetDocPath
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(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