Posted By

ryantxr on 04/23/15


Tagged

apple iphone iPad ios swift


Versions (?)

Get Documents directory path in Swift


 / Published in: Other
 

Get Documents directory path in Swift

  1. func getDocsDir() -> String {
  2. let dirPaths = NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .UserDomainMask, true)
  3. let docsDir = dirPaths[0] as! String
  4. return docsDir
  5. }

Report this snippet  

You need to login to post a comment.