Last active
August 29, 2015 14:28
-
-
Save agiletortoise/c93f95f371d0d843f14d to your computer and use it in GitHub Desktop.
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
// add "-DDEBUG" to Build Settings > Swift Compiler flags > Other Swift Flags | |
// stick this code in didFinishLaunchingWithOptions | |
// then you can easily locate the iOS Sim's app documents directory to check on files. | |
#if DEBUG | |
let dirPath = NSFileManager.defaultManager().URLsForDirectory(NSSearchPathDirectory.DocumentDirectory, inDomains: NSSearchPathDomainMask.UserDomainMask).last?.path | |
print(dirPath) | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment