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

Using different tabs

Despite the fact that tabs are more popular for web and desktop applications, we can build a graphic interface with it for our iPhone applications. Usually, tabs are used as a container within a window or a page. It is a navigation widget for switching between a set of widgets used for grouping common functionalities. Formally, the area using tabs is known as tabbed interface. This recipe shows you how to build a basic widget with three different tabs.

Getting ready

As seen in the previous recipe for the date picker widget, we're going to use the Sencha Touch framework again. The reason for it is very clear; this framework offers a simple and useful widget to do that.

How to do it...

The first few steps for this recipe are very ...

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