【问题标题】:How do I get a numbers-only keyboard on a TVML textField?如何在 TVML 文本字段上获得纯数字键盘?
【发布时间】:2015-10-16 17:13:35
【问题描述】:

我正在构建一个基于 TVML/TVML 的 tvOS 应用程序,并希望在我的 textField 元素上使用纯数字键盘,但 documentation 目前没有说明如何做到这一点。

【问题讨论】:

    标签: tvos tvml


    【解决方案1】:

    textField TVML 元素上,您可以指定值为numberPadkeyboardType 属性以获取数字键盘。

    <textField keyboardType="numberPad">Placeholder</textField>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-03-24
      • 2012-11-29
      • 2013-12-13
      • 2012-07-25
      • 1970-01-01
      • 2023-03-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多