📜  userdefault where - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:57.189000             🧑  作者: Mango

代码示例1
var path: [AnyObject] = NSSearchPathForDirectoriesInDomains(.libraryDirectory, .userDomainMask, true) as [AnyObject]
    let folder: String = path[0] as! String
    NSLog("Your NSUserDefaults are stored in this folder: %@/Preferences", folder)