How to save in NSUserDefaults a array of object?
问题 I need save in NSUserDefaults an array or other structure of data to save objects with this format: name = "myName", lastName = "myLastName" I was trying to do this with an array of arrays but this can't save in NSUserDefaults . Now I am trying with a custom class with structure to create objects and append to the array, but also get an error when trying to save this to NSUserDefaults . I need save with this structure, but I don't know what is the correct form. How would I do this? var