大佬教程收集整理的这篇文章主要介绍了ios – 查询CloudKit用户记录提供“无法查询系统类型”,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
// Create a CKQuery let preDicate = NSPreDicate(value: truE) let sortDescriptor = NSSortDescriptor(key: "score",ascending: falsE) var query = CKQuery(recordType: "Users",preDicate: preDicatE) query.sortDescriptors = [sortDescriptor] // Create a query operation var queryOperation = CKQueryOperation(query: query) queryOperation.resultsLimit = 50 queryOperation.recordFetchedBlock = { (record: CKRecord!) -> Void in self.records.append(record) } queryOperation.queryCompletionBlock = { (cursor: CKQuerycursor!,error: NSError!) in // Log an error and show and alert if error != nil { println("Error querying for leaderboard: \(error)") var alert = UIAlertController(title: "Unable Donwload Leaderboard",message: "Unable to download the leaderboard at this time. Please try agin later.",preferredStyle: UIAlertControllerStyle.Alert) alert.addAction(UIAlertAction(title: "OK",style: UIAlertActionStyle.Default,handler: nil)) self.presentViewController(alert,animated: true,completion: nil) return } // update the records array and refresh the table view dispatch_async(dispatch_get_main_queue(),{ () -> Void in self.tableView.reloadData() }) } // Start the operation database.addoperation(queryOperation)
<CKError 0x1553cc10: "Permission Failure" (10/2007); server message = "Can't query system types"; uuid = 3349514B-02EC-40D7-B716-585D4ADD3128; container ID = "iCloud.com.MyCompany.MyApp">
以上是大佬教程为你收集整理的ios – 查询CloudKit用户记录提供“无法查询系统类型”全部内容,希望文章能够帮你解决ios – 查询CloudKit用户记录提供“无法查询系统类型”所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。