12. Search

The measure of intelligence is the ability to change.

Albert Einstein

In Chapter 11, “Background Processing,” the execution of background tasks such as save, import, and thumbnail creation was demonstrated. This brief chapter implements search on the PrepareTVC table view of the Prepare tab. Search results have the same sectioning and sort order as the PrepareTVC table view so that it looks like search results are filtered in place. This functionality is added in such a way that it is easy to enable search on any table view, with only minor updates required. This flexibility is achieved by implementing as much of the search functionality into the underlying CDTableViewController as possible.

To add search to a table view, you need ...

Get Learning Core Data for iOS with Swift: A Hands-On Guide to Building Core Data Applications, Second 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.