How do I use the Picker View on mobile?
This lesson describes how LiveCode menus can be represented and used on mobile. Screen captures are provided.
In a desktop environment menus (option menus, pulldown menus, combo boxes and popup menus) provide an expanding list from which an item can be selected. On mobile devices a different user interface philosophy is used.
On mobile menus are represented by a native Picker View. This is created by the
Creating an Option Menu
- Option Menu - "countryPicker"
- Entry Field - "countryChoice"
- Scrolling field - "countryList". This field is provided for reference only and list the options used in the picker.
Set the script of the option menu to
on mouseUp mobilePick field "countryList" put the result into field "countryChoice" end mouseUp
Native Picker Controls
Deploy your app onto a mobile device and clck on the menu. A native Picker View opens allowing the user to choose from the provided options.