Search code examples
iphonemobiledialogtitaniumappcelerator

Titanium iPhone: making a dialog similar to this standard iPhone ui?


I'm attempting to implement a dialog for a user to choose several of many toggle-able options. The iPhone has a nice model for this, in Settings/General/Keyboards:

screenshot

However, I could not re-create this exactly: this task is to show two table sections (tables?), but only one is editable. (The one with the keyboard list.)

The Titanium API only allows a table to be editable, not a section. And I couldn't figure out how to layout two tables to scroll together. (I tried putting them both in a ScrollView, etc.)

Anyone able to do something like this?

EDIT: Here's my workaround, which I consider sub-optimal. :-( Instead of that second table section with the control element, I'm using a toolbar at the bottom:

dialog


Solution

  • You can control whether any row is editable or not by setting the editable property on the row (it defaults to the value of the table if not set).