UI

The UI section of the code deals only with the UI of the application, as you have seen up to now we have dealt with the application logic, obtaining and processing the data, and controlling the flow of the application.

Defining the code for the UI of the application falls into two categories.

  • Common elements
  • Windows (screens)

Within Titanium, you can use the tab group method to build a menu system, but it does have its pitfalls; it's not consistent across platforms and uses the window stack to maintain the navigation.

In quite a few cases, the tab group is sufficient, but if your application uses a multitude of windows, which can be accessed randomly, then consider using a custom menu. Within the controller architecture this works very effectively. ...

Get Appcelerator Titanium: Patterns and Best Practices now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.