Reputation: 3196
I am trying to save a data in parse for pointer field while i am trying i received the following error as
invalid type for key Users, expected *_User,but got string
My code is as below
posts[@"Users"] = user1.objectId;
Upvotes: 4
Views: 1174
Reputation: 2668
// User1 is _User class object so directly assign it
posts[@"Users"] = user1;
Upvotes: 3