If let testArray : AnyObject? = defaults. Var defaults = NSUserDefaults.standardUserDefaults() So your code could look like that : var key = "keySave" Even though Apple bridges types such as String and NSString, I wasn't able to save an array of neither of. I have the same problem as you, as to know, the array of String is not saved. Just to add on to what says in the comments. As far as I know, anything that you can save in a property list will work like this.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |