CoreData many-to-many relationship
问题 How to operate with many-to-many relationship in CoreData? For example: I have 2 entities - Recipes & Ingredients CoreData links them like Recipes <<-->> Ingredients. Now I need to add attribute "Count" for every Ingredient in Recipe. How can I do it? Thanks 回答1: Core Data takes care of the object graph consistency maintenance for you. So if you use a SQLite store, Core Data automatically creates the intermediate join table for you for many-to-many relationships. In your case, you should