如果我尝试简单地打印此属性,我在didReceiveRemoteNotifications上收到以下错误,例如:
let cloudKitNotification = CKNotification(fromRemoteNotificationDictionary: userInfo as! [String : NSObject])
if cloudKitNotification.notificationType == .Query {
let queryNotification = cloudKitNotification as! CKQueryNotification
print(queryNotification.recordFields)
无法将'__NSCFDictionary'类型的值(0x273119c)转换为'CKRecordValue'(0x2763090)。
如果我打印整个queryNotification,我可以在里面看到recordFields。我花了一整天的时间试图理解这一点。有线索吗?
Xcode 7.3.1