Time for action – creating a better designed app using MVC
This example will put all of the good practices discussed in this chapter into action. It can be argued that the example is not purely MVC-based and that is probably true. To that I would argue that MVC is a design goal and not a restriction. The app does what we need it to; it keeps the platform-specific areas away from the common business logic. What it does highlight is how a good design pays dividends when creating apps for phones and tablets. This is good stuff; let's get going.
Create a new app by navigating to File | New | Titanium Project. From the dialog select Titanium Classic then Master/Detail Application and click on Next.
Enter the app details on the New Titanium Project window. Keep all of the deployment targets checked. The advantage of an MVC methodology is that it is easier to deploy to many targets. Remove the check against the Cloud settings option, as it's not relevant for this example. Click on Finish to create...