In lesson 5 of module 6 of the CWC+ iOS Databases course, Chris shows us how to add a search box to our RecipeListView.swift by using a filter with our Core Data. And then we have our SearchBarView sub-view: One of the problems this lesson revealed was that the on-screen […]
Monthly archives: April 2022
Continuing with enhancing our (old) Recipe App with Core Data, lesson 4 from module 6 of the CWC+ iOS Satabases Course takes us through some important changes. We previously got all of our data from our RecipeModel, re: And we displayed the data, thus – Now we’re using Core Data, […]
As we begin Lesson 3 of Module 6 of the CWC+ iOS Databases course, Chris highlights a potential future error for us to address. We copied our Persistence.swift file from another (new) project but, in order to ensure that the app runs correctly, we need to change a property in […]
Wow, that was pretty “interesting” to say the least! After a brief introductory video (lesson 1), lesson 2 of module 6 of the CWC+ iOS Database Course takes us down the rocky road of modifying our old iOS Foundations Recipe App ready to use Core Data. Before we start, there’s […]
I’ve always had a tough time explaining “relationships” between data tables when it comes to databases. Way back when I started using them with Lotus Approach, it was simply a matter of dragging one field from one table to a related field on another table and you could immediately see […]
We learn in lesson 4 of module 5 from the CWC+ iOS Database course, that we can sort our core data on fetch using sortDescriptors, which is an array of keys to sort plus a parameter for whether that sort should be in ascending order or not. In its simplest […]
So, what did we learn in lesson 3 of module 5 of the CWC+ iOS Dabatases course? Well, firstly, that Xcode creates a lot of dummy code for demonstration purposes that we don’t need to use. More usefully, our main top-level Swift file contains these essential pieces of code: As […]
Lesson 1: Core Data Basics This introduction to Core Data Basics, cleared up a few things for me. I had heard the phrase “Core Data” before but I had completely the wrong idea in my head. ‘Core Data’ is apparently “local data” – i.e., “database data” held locally on the […]