class GeoneMapViewModel: GeoneBaseModel,NSCoding {
var userInitMaps = [GeoneMapLayerModel]()
var defaultMapExtent:String?
var token = [GeoneToken]()
var baseMap = [GeoneMapLayerModel]()
}
class GeoneToken: GeoneBaseModel {
var id:String?
var label:String?
var tokenUrl:String?
}
func saveToken() {
for token in mapViewModule!.token {
token.save()
}
}
到此,崩溃..
致命错误:NSArray元素无法匹配Swift数组元素类型
我的方式是错的吗?