Table Readiness

As the properties and methods you’ve learned about reveal, fetched results instances are table-ready. Recipe 12-1 presents all the standard table methods, adapted to Core Data fetched results. As you can see, each method used for creating and managing sections is tiny. The built-in Core Data access features reduce these methods to one or two lines each. That’s because all the work in creating and accessing the sections is handed over directly to Core Data. The call that initializes each fetched data request specifies what data attribute to use for the sections. Core Data then takes over and performs the rest of the work.

Figure 12-2 shows the interface that Recipe 12-1 builds. It offers a full-featured table, complete with section ...

Get The Core iOS Developer’s Cookbook, Fifth Edition 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.