Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

creatorUserRecordID.recordName contains "__defaultOwner__" instead of UUID shown in Dashboard

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.

enter image description here

Why the difference?!

I hope I do not have to download only because of this the logged in user first?!

like image 360
János Avatar asked May 28 '15 09:05

János


1 Answers

__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.

like image 176
malhal Avatar answered Oct 22 '22 10:10

malhal