Tag: 云端工具包

如何接收有关与我共享的logging中所做更改的cloudkit通知?

我在两个不同的设备上有两个icloud帐户( A和B )。 ( A )我把ckrecord分享给另一个( B ): let controller = UICloudSharingController { controller, preparationCompletionHandler in let share = CKShare(rootRecord: record) share[CKShareTitleKey] = "title" as CKRecordValue share[CKShareTypeKey] = "pl.blueworld.fieldservice" as CKRecordValue share.publicPermission = .readWrite let modifyOperation = CKModifyRecordsOperation(recordsToSave: [record, share], recordIDsToDelete: nil) modifyOperation.savePolicy = .ifServerRecordUnchanged modifyOperation.perRecordCompletionBlock = { record, error in print(error?.localizedDescription ?? "") } […]