Interaction
The INTERACTION
section of PrepareTVC
is used to handle the new Clear button on the Prepare tab. This button will be used to remove all items displayed on the Shop tab. Because this button could be pressed accidentally, an action sheet will be used to confirm the action.
The ShopTVC
table view will display the shopping list items, which means it will only show items where item.listed
= YES
. This calls for a new fetch request template to be created that will not only be used to populate the ShopTVC
table view, it will also be used to unlist listed items when the Clear button is pressed.
Update Grocery Dude as follows to create the shopping list fetch request template:
1. Select Model 6.xcdatamodel.
2. Rename the existing Test fetch ...
Get Learning Core Data for iOS: A Hands-On Guide to Building Core Data Applications now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.