How to save an array of custom structs to plist swift
问题 I'm trying to save alert data to a plist, it is in the form of an array of the class alertData, all the info i can find points to encoding it, and then putting it in the array, but i'm confused as to what this does? And i also can't figure out how to do it, here's my playground: Any help would be great The class (i'm trying to save an array of these) public class alertData: NSObject, NSCoding { //Properties of the timer data - make optionals optional i.e. alert count etc. var alertCounter: