Time (C): Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 42: | Line 42: | ||
[[Category:Language Reference]] | [[Category:Language Reference]] | ||
[[Category:Controls]] |
Revision as of 16:24, 24 August 2012
Description
The Time control allows the input of a time. The result is returned as a string in value.
When the control is selected at runtime, a special month picker is displayed.
It is supported starting with iOS 5. It is not supported on Android at this time.
To add a control to your app, choose the control’s icon in the Toolbar, then position it on the Design Screen. Use the Property Editor to set the properties you need, then add functions to your code to respond to the events that come from the control: usually, just onclick.
Properties
Standard properties are supported, plus:
value | The time value of the control.
To set the time, use format 09:14 PM. |
Events
Standard events are supported,
Example
Output
(value is set to “2:09 PM”)