ckqueryoperation

Querying shared records in a ckzone in the private database returns nothing

杀马特。学长 韩版系。学妹 提交于 2019-12-24 23:52:07
问题 Swift 4.2 iOS 11.x I must have missed something cause this surely should work. I got this code that queries the private database in a custom zone. It returns nothing despite the fact that I have records there. I added indexes to everything! I also changed the roles in permissions so that any authenticated user could read records. public func cleanUpImages(zone2U:String) { var records2Delete:[CKRecord.ID] = [] let zone2D = CKRecordZone(zoneName: zone2U) let predicate = NSPredicate(value: true)

CloudKit CKQueryOperation doesn't get all records

白昼怎懂夜的黑 提交于 2019-12-05 02:34:09
问题 In CloudKit RecordType is more than 100 records. Following code gets from these only 11 and they are not first 11 records, they are picked randomly from beginning, center and at the end of records. I can't get whats wrong in code. EDIT : I got it working by changing .reseltsLimit to 5000! let cloudContainer = CKContainer.default() let publicDatabase = cloudContainer.publicCloudDatabase let predicate = NSPredicate(value: true) let query = CKQuery(recordType: "Sijainti", predicate: predicate)

CloudKit CKQueryOperation doesn't get all records

自古美人都是妖i 提交于 2019-12-03 20:23:43
In CloudKit RecordType is more than 100 records. Following code gets from these only 11 and they are not first 11 records, they are picked randomly from beginning, center and at the end of records. I can't get whats wrong in code. EDIT : I got it working by changing .reseltsLimit to 5000! let cloudContainer = CKContainer.default() let publicDatabase = cloudContainer.publicCloudDatabase let predicate = NSPredicate(value: true) let query = CKQuery(recordType: "Sijainti", predicate: predicate) var queryOperation = CKQueryOperation(query: query) queryOperation.queuePriority = .veryHigh