I want to write an array to .plist but nothing is in .plist after I call the function.
Here is my code:
override func viewDidLoad() {
super.viewDidLoad()
var filepath = NSHomeDirectory().stringByAppendingString("/lacator.plist")
let array:NSArray = ["b","a","n","d"]
array.writeToFile(filepath, atomically: true)
}
the file was placed :
/var/mobile/Containers/Data/Application/AE38143E-C398-4DA7-952D-4E1C903E9637/locator.plist
but I couldn't find the folder...