CKOperation Documentation
CKOperation對象有 NSQualityOfServiceUtility服務水平的默認質量。此 級別的操作被視爲可自行決定,並由系統 根據電池級別和其他因素安排最佳時間。在 iPhone上,低功耗模式爲 啓用時,任意活動暫停。
你需要做的是手動設置CKFetchRecordZoneChangesOperation
的服務質量,以.userInitiated
// userInitiated: Used for performing work that has been explicitly requested by the user,
// and for which results must be immediately presented in order to allow for further user interaction.
// For example, loading an email after a user has selected it in a message list.
//
// set to userInitiated make sure the completion with error will immediately returned if currently no internet connection
zoneOperation.qualityOfService = .userInitiated
感謝什麼!這解決了我的問題。 – Leontien