标签: ios swift swift2 cloudkit nserror
我想这是基本的,但仍然......我如何检查是否收到ZoneBusy错误?
ZoneBusy
if error.code == CKErrorCode.ZoneBusy { // <- compiler says can't use '==', then what?
参考:
https://developer.apple.com/library/prerelease/ios/documentation/CloudKit/Reference/CloudKit_constants/index.html#//apple_ref/c/tdef/CKErrorCode
答案 0 :(得分:6)
您似乎缺少.rawValue。
.rawValue
所以它应该是:
CKErrorCode.ZoneBusy.rawValue