Relative Content

Tag Archive for swiftcore-datasumtableviewrelationship

add together the same core data item from multiple tableviews

I have added a diagram below. What you can see in the diagram is a class where you save a food item. You click on the tableview cell and you can see a new class where you place the item and the amount you need to make that recipe. What I want to do is when you click on a tableview cell on the 2nd class. It searches throughout all the recipes to find the cumulative amount of that specific ingredient. In the diagram you can see that I highlighted apples. On the tableview cell it should be for example the apple hits 3.0, total all 8.0