21
Search
In the previous chapter, you added a way for the user to get a photo from the camera or photo library, which can be added to a new journal entry.
In this chapter, you will implement a search bar for the Journal List screen. You’ll start by modifying the JournalListViewController class to conform to the UISearchResultsUpdating protocol and display a search bar on the Journal List screen. Next, you’ll modify the data source methods to display the correct journal entries when the user types in a search term. After that, you’ll modify the prepare(for:sender:) method to ensure that the correct journal entry details are displayed on the Journal Entry Detail screen. Finally, you’ll modify the method used to delete a journal entry.
By the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access