O'Reilly logo

Anyone Can Create an App: Beginning iPhone and iPad programming by Wendy L. Wise

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required