Skip to content

Instantly share code, notes, and snippets.

@MTattin
Created September 23, 2015 01:34
Show Gist options
  • Save MTattin/5343a8f91aeb85dac5d2 to your computer and use it in GitHub Desktop.
Save MTattin/5343a8f91aeb85dac5d2 to your computer and use it in GitHub Desktop.
Documentsのパス取得(勘違いしてた) ref: http://qiita.com/MTattin/items/ce4fc8a9f8a67f5cd9d3
NSHomeDirectory().stringByAppendingPathComponent("Documents")
NSHomeDirectory().stringByAppendingString("Documents")
/var/mobile/Containers/Data/Application/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXDocuments/
NSHomeDirectory().stringByAppendingString("/Documents")
/var/mobile/Containers/Data/Application/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/Documents
NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .UserDomainMask, true)[0] as String
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment