How do I use the Picker View on an iPhone?
This lesson describes how the LiveCode Option Menu is represented and used on the iPhone. Screen captures are provided.
In a desktop environment, the Option Menu provides an expanding list from which an item can be selected using a mouse or other pointing device. iPhones are hand held devices that do not support the general use of a mouse. As a result, the iPhone presents a different user interface philosophy when displaying an Option Menu. On the iPhone, the LiveCode Option Menu is represented by a native Picker View.
Creating an Option Menu
The Option Menu can be created by dragging and dropping the respective control onto a stack or card.
You can then populate the options via the Property Inspector.
In this example, the card contains the Option Menu and a Text Entry Field. The Text Entry Field is provided for reference only and list the values that are stored in the Option Menu.
iPhone Option Menu Support
Once you have loaded your Option Menu application onto an iPhone and you select the control, a Picker View opens. This is a native iPhone control that is base on a spinning wheel analogy.
You can spin through the options on the Picker View in a way that blends into the general iPhone interface design framework.