Created
July 9, 2013 08:55
-
-
Save alladinian/5955795 to your computer and use it in GitHub Desktop.
How to Get Documents Directory (iOS)
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
NSArray *documentsSearchPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); | |
NSString *documentsDirectory = [documentsSearchPaths count] == 0 ? nil : [documentsSearchPaths objectAtIndex:0]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment