O'Reilly logo

iPhone JavaScript Cookbook by Arturo Fernandez Montoro

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

Building a search dialog

The iPhone provides a specific way to display dialog boxes for searching. This kind of dialog is different than the modal box that we explained in the previous recipe. Actually, the search dialog box is displayed as a pop up at the top of the current page. Meanwhile, the rest of the same page is grayed out instead of using the black color as the modal box. The search dialog box should contain two different action buttons. One of them will be used for cancelling the search and the other one will launch this search. Let's explore how to build a standard search dialog for our iPhone applications.

Getting ready

The iUI framework uses a simple and efficient way for building our required dialog. Check the installation of this ...

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