Downloading a CKRecord
from CloudKit
and when plotting creator recordName
, I can see this:
(lldb) po record.creatorUserRecordID.recordName
__defaultOwner__
but, Dashboard show a real value.
Why the difference?!
I hope I do not have to download only because of this the logged in user first?!
__defaultOwner__
mean's it's owned by the currently logged in iCloud account. So you could could check for that and display "Me" or the person's name if you have it. If you need to find out the logged-in user's recordID
you can use the async method: fetchUserRecordIDWithCompletionHandler
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With