Titanium Mobile

Post on 29-Nov-2014

8.694 views 0 download

description

Presentation to sdruby on building iPhone applications with Titanium Mobile.

Transcript of Titanium Mobile

Titanium MobileBuild iPhone apps w/ Javascript

Who am I?

• Scott Motte / 25 / Perris, CA

• mid-level rubyist that prefers Merb

• spitfiresky.com

• twitter.com/spitfiresky

• github.com/scottmotte

• scott@spitfiresky.com

Install

• Download iPhone SDK

• Download Titanium Developer

• Request Mobile access

• send a nice email (friend http://Jeromegn.com received his invite within the hour)

*http://www.appcelerator.com/products/download-titanium/download/*http://www.appcelerator.com/products/request-titanium-mobile/

Setup

• Create new app

• configure tiapp.xml

• create html/js/css

• launch emulator to check your work

tiapp.xml

tiapp.xml

• One or more <window> elements are added to create a tab bar view.

• If only one <window> tag is a child of <windows>, then by nature the view is a single view application (no tab bar).

Layout• Organize your files any way

you’d like under Resources

• /android and /iphone are for code you write specific to those platforms

• When you start off you’ll mostly be writing javascript code to open up new html windows

flights/index.html

javascripts/flights/index.js

javascripts/master.js

exceptions/unauthenticated.html

javascripts/exceptions/unauthenticated.js

flights/new.html

javascripts/flights/new.js

Launch Emulator

Available to you

AccelerometerDatabaseFilesystem

GeoLocation

GesturesEmbed sounds/videoNetwork & Platform

UI