How I can save array to .plist with array type?
I try this, but is not working
let path = NSBundle.mainBundle().pathForResource(\"Setting\", ofTy
You can't write to the Bundle directory but you can write to the Documents directory. So, use this code!
let documentsPath = NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .UserDomainMask, true)[0] as NSString
var path:NSString = documentsPath.stringByAppendingPathComponent("Setting.plist");
When you'll writeToFile() use this:
arrayWithProperties.writeToFile(path as String, atomically: true)
Good Luck!