How do I get the actual quota for CloudKit?

I'm using Cloudkit and a private database to store some files in iCloud and sync between iOS and OSX. Now I wanted to implement something, the user can see how much space is left in his iCloud without leaving the application and without looking in preferences. But I cannot find any information on how to get this data. The entire CloutKit Framework reference does not have an object or method that gives me this information.

Since the private database uses the normal iCloud quota for the user, I could work by browsing this data over any other iCloud API.

Anyone have a hint for me or a way to get this information?

+3


source to share


1 answer


There is currently no way to get the remaining quota for a user in a private database, so your best bet is to try to load the data you want and watch for an error CKErrorQuotaExceeded

.



+1


source







All Articles