NSCoder: Unrecognized selector sent to instance
问题 So, I'm new to iOS and have been using online tutorials to learn the platform. The tutorials I'm using are building apps with iOS 9 while I'm using iOS 10. Because of that I have run into the title issue. Here is some code: CalendarEvent.swift class CalendarEvent : NSObject { var title : String var dateString : String init(withTitle t : String, andDateString ds : String) { title = t dateString = ds } init(withCoder coder : NSCoder) { dateString = coder.decodeObject(forKey: "dateString") as!