我可以将 CLLocationCoordinate2D 数组的内容保存到 LocationList(Cloud Kit 字段类型)中吗?
这是我所做的,TTitre 被保存到数据库中,但不是我的 CLLOcationCoordonate2D 数组
let database = CKContainer.default().publicCloudDatabase
var TraceTitre = "Titre" as CKRecordValue
var TabAsCK = traces as CKRecordValue
let newTrace = CKRecord(recordType: "Trace")
newTrace["TTitre"] = TraceTitre
newTrace["TTrace"] = TabAsCK
database.save(newTrace, completionHandler: { (record:CKRecord?, error:Error?) -> Void in
if error != nil{
print("Record OK \(record)")
}
})
谢谢 d'avance,弗洛里安