the following is enough: class MyObject: NSObject, NSCoding {...} let my = MyObject() // archive NSKeyedArchiver.setClassName("MyObject" ...
確定! 回上一頁