Return to Snippet

Revision: 69127
at April 23, 2015 09:38 by ryantxr


Initial Code
func getDocsDir() -> String {
        let dirPaths = NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .UserDomainMask, true)
        let docsDir = dirPaths[0] as! String
        return docsDir
    }

Initial URL

                                

Initial Description
Get Documents directory path in Swift

Initial Title
Get Documents directory path in Swift

Initial Tags
iphone, ios

Initial Language
Other