Glenn Posadas
Glenn Posadas

Reputation: 13283

How to remove key and object in a CKRecord?

Is there any way to remove an object / key from a CKRecord? It somehow acts like an NSDictionary but no method available, I believe, to do this task. Unlike in NSDictionary, we have - (void)removeObjectForKey:(KeyType)aKey;.

Upvotes: 1

Views: 74

Answers (1)

vadian
vadian

Reputation: 285059

It's exactly like the modern syntax of NS(Mutable)Dictionary. Just use key subscription syntax and assign nil

record[@"aKey"] = nil;

Upvotes: 1

Related Questions