Chapter 27. Search your LioNs

This chapter covers

  • Adding search functionality
  • Closures
  • Cleaning up the code

Can you believe how far you’ve come in this book? You’re almost finished with the LioN app. It would be really nice if you allowed your users to search for the LioNs they’ve added—otherwise they’ll have to scroll through everything. Let’s see how to add that feature!

27.1. Adding the search functionality

The first thing you need to do is add the search bar to the LioN scene. Search the Object Library for search, and two different objects will be returned. The first is Search Bar, which is just the visual component, and the second is Search Bar and Search Display Controller. You want the second component, because you can use the ...

Get Anyone Can Create an App 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.