0
votes

I am using Core Data and want to display an Entity's attributes as TableView headings.

In the example below, "Color" has three attributes and I would like to display each of these (consistent, inconsistent and multicolored) as headings in a tableview. I can access the 'values' in each of these attributes, but not the names of the attributes themselves. Help appreciated.

Core Data

1

1 Answers

2
votes

NSManagedObject.entity.attributesByName will return an NSDictionary with all the attribute names of the entity as the keys.