|
@@ -18,6 +18,7 @@ class KXSFMListModel: NSObject ,NSCoding {
|
18
|
18
|
@objc var image : NSArray = [] as [String] as NSArray
|
19
|
19
|
@objc var language : String? = ""
|
20
|
20
|
@objc var name : String? = ""
|
|
21
|
+ @objc var num : String? = ""
|
21
|
22
|
var isSelect = false
|
22
|
23
|
var count = 0
|
23
|
24
|
|
|
@@ -32,6 +33,7 @@ class KXSFMListModel: NSObject ,NSCoding {
|
32
|
33
|
aCoder.encode(image, forKey: "image")
|
33
|
34
|
aCoder.encode(language, forKey: "language")
|
34
|
35
|
aCoder.encode(name, forKey: "name")
|
|
36
|
+ aCoder.encode(num, forKey: "num")
|
35
|
37
|
}
|
36
|
38
|
|
37
|
39
|
required init?(coder aDecoder: NSCoder) {
|
|
@@ -45,6 +47,7 @@ class KXSFMListModel: NSObject ,NSCoding {
|
45
|
47
|
image = aDecoder.decodeObject(forKey: "image") as! NSArray
|
46
|
48
|
language = aDecoder.decodeObject(forKey: "language") as? String
|
47
|
49
|
name = aDecoder.decodeObject(forKey: "name") as? String
|
|
50
|
+ num = aDecoder.decodeObject(forKey: "num") as? String
|
48
|
51
|
}
|
49
|
52
|
|
50
|
53
|
override init() {
|