Kitchen Sink Screenshots
On the downside: I’ve heard anecdotally that many people have issues installing Titanium and getting it running. It does have it’s bugs: I ran into one at Launch48 with swiping on a view within a table row inexplicably crashing the app, but I didn’t have time to figure out the root cause.
There are lots of tutorials and resources on the web, so here are a few good links for getting started – and some of the ‘gotchas’ that I ran into so far.
The website says that Titanium requires either the iPhone or Android (1.5) SDKs to compile an app, but for me the New Project button was disabled until I installed both. It usually detects when they are installed, but you can also point it to the directory.
Download iOS from the Apple iOS Developer centre– you’ll need an account but it’s free (unless you want to deploy to a real device, in which case it’s $100 :().
This includes the Mobile and Desktop versions. Once it’s downloaded and installed, open the app and click the New Project button. Choose Mobile or iPad from the Project Type dropdown.
I had an issue where I could only choose Desktop initially, but restarting the application seemed to solve this (no idea why, but I’ve had no problems since).
Titanium will most likely tell you to download the new Mobile SDK 1.4.2. This does not work for creating new Mobile projects, although it seems to be fine for creating new iPad projects. Choose the 1.2.0 SDK version and it will create a new Mobile project.
I found a useful tutorial for understanding the differences between Windows, Views and Tab Groups.
The Titanium Developer documentation is useful for finding out the names and properties for the different objects – as a rule, most UI objects can be created by something like this (replace ObjectName with the object name, property: value with the relevant properties and values):
The Stack Overflow-style Developer Q&A section is also really helpful.
Getting the App on to the iPad
So far I’ve only put my app on to my iPad. I needed a Development Certificate and Provisioning Profile with the correct app ID (which I had to download from the Apple Developer centre – and jeez what a pain in the butt that was!).
Within Appcelerator, go to the ‘Run on Device’. You’ll need to click on ‘Upload’ to add your Provisioning Profile. Appcelerator will detect when it has all of the necessary stuff installed, and only then will the ‘Install Now’ button become available.
Make sure you’ve got the right SDK or you’ll get an install error. Choose the right Development Certificate and Provisioning Profile. I’ve got more than one, and it caused an entitlement error when I picked the wrong one and tried to install the app on my iPad.
Then click Install Now, and the app is installed via iTunes. Voila!