📜  可映射到 nsuserdefault - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:40.596000             🧑  作者: Mango

代码示例1
//  User.swift
import ObjectMapper
class User: Mappable {
    required init?(map: Map) {}
    func mapping(map: Map) {
        name <- map["name"]
        uid <- map["uid"]
    }
    var name:String = ""
    var uid:Int = 0
}