【问题标题】:How to show 12 hour format in Titanium IOS time picker如何在 Titanium IOS 时间选择器中显示 12 小时格式
【发布时间】:2015-02-17 12:30:40
【问题描述】:

我读了here,但没有结果。我的代码是

Titanium.UI.createPicker({
    useSpinner : true,
    selectionIndicator : true,
    type : Ti.UI.PICKER_TYPE_TIME,
    value : defaultVal
});

我需要显示 12 小时格式的选择器。 format24 属性在那里,仅适用于 android :(

【问题讨论】:

    标签: ios titanium appcelerator titanium-alloy appcelerator-mobile


    【解决方案1】:

    来自here我发现不能强制IOS日期设置改变。如果 IOS 的日期格式设置为 24 小时格式,则选择器将显示 24 小时和 12 小时的日期/时间

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-17
      • 1970-01-01
      • 1970-01-01
      • 2012-02-14
      • 2022-08-08
      • 1970-01-01
      相关资源
      最近更新 更多