如何用“获取(withQuery:inZoneWith:completionHandler :)”替换“执行(_:inZoneWith:completionHandler :)” - 已弃用 - ?

问题描述 投票:0回答:0

谁能帮我消除这个警告?

Screenshot of the problem.

在这种情况下正确的完成处理程序是什么 “获取(withQuery:inZoneWith:desiredKeys:resultsLimit:completionHandler :)”?

这是我的第一个 DataCore/iCloud 项目,我对完成处理程序一无所知,我也不理解“获取”的文档 completionHandler: @escaping @Sendable (Result<(matchResults: [(CKRecord.ID, Result)], queryCursor: CKQueryOperation.Cursor?), 错误>

我也不明白类似问题的解决方案How to setup the completion handler for fetch(withQuery: , inZoneWith: ) cloudKit func

...这是我在网上可以找到的唯一与我的问题相关的链接。

swift completionhandler
© www.soinside.com 2019 - 2024. All rights reserved.