How to redeem an item from a relationship with Swift?

Asked

Viewed 30 times

0

Hello I am trying to store in a variable the value of an item of a relationship. The relationship is "friends" and in it there are some attributes like "friendship". I would like to store the value of "friendship" in this variable but I’m not getting it.As an example in Nspredicate I use "friends.friendship" to access the item of a relationship, but outside of nspredicate I can’t get that value, can someone there help? Thank you

1 answer

0

I was able to access the relationship attribute using instead of vafalue for key I used value for key path and passed as parameter ("relationship.attribute")

Browser other questions tagged

You are not signed in. Login or sign up in order to post.