Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
NSArray * relationships = [entity.relationshipsByName allKeys];
将返回所有关系。
如果我只想要一对多的关系呢?那是支持选择器计数的关系。
我该怎么做?
如果遍历NSDictionary返回的 by entity.relationshipsByName,则每个值都是NSRelationshipDescription具有属性的实例isToMany。您只能提取该属性为真的关系吗?
NSDictionary
entity.relationshipsByName
NSRelationshipDescription
isToMany