문제

Does anybody know if there is a way to detect if the current NSUbiquitousKeyValueStore is up to date? For example, if I have turned on the Flight Mode or got no internet connection, iCloud is not able to Sync Data, but how can I tell the user that he is working with maybe old data?

I also tried to handle the NSUbiquitousKeyValueStoreDidChangeExternallyNotification but it doesn't get triggered by failure.

Best regards.

도움이 되었습니까?

해결책

I'm not sure about NSUbiquitousKeyValueStore but for iCloud + CoreData there's NO way to know if the data is synced or not. I assume for Key-Value storage it's the same.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top