lundi 12 octobre 2015

How to find a path for SQLite database

I following a CoreData tutorial, when I try to find the database print give me the path that I can not find :(

let paths = NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .UserDomainMask, true) as NSArray
let documentsDir = paths.firstObject as String
println("Path to the Documents directory\n\(documentsDir)")

The path I get is:

Path to the Documents directory /var/mobile/Containers/Data/Application/77F8F4C9-9C75-4F4F-AFE8-E71378AE6C02/Documents

Can anyone help me?

Aucun commentaire:

Enregistrer un commentaire