O'Reilly logo

Appcelerator Titanium Smartphone App Development Cookbook - Second Edition by Jason Kneen

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

Reading and writing app properties

Whether you are reading or writing values, all app properties are accessed from the Ti.App.Properties namespace. In this recipe, we are going to create a number of properties, all with different types, under the first window of our app. Then, we will read them and output their values to the console using a button in the second tab window. We'll also show you how to check the existence of a property using the hasProperty method.

Getting ready

To prepare for this recipe, open Appcelerator Studio and log in if you have not already done so. If you need to register a new account, you can do it for free directly from within the application. Once you are logged in, click on New Project and the details window for creating ...

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