【问题标题】:iOS custom keyboard has this other thing I don't want attached to itiOS自定义键盘还有我不想附加的其他东西
【发布时间】:2020-12-23 18:45:18
【问题描述】:

我正在构建一个 iPad 应用程序。我有一个附加到文本字段的自定义屏幕键盘,一切正常。但是当它弹出时,它上面还有另外一个东西,包含四个控件。右侧的向下箭头使其消失,但不是永久消失。其他三个控件似乎没有做任何事情。

The View I Don't Want

我不想要这个东西。我还没有弄清楚如何让它在代码中消失。我尝试将文本字段的 inputAccessoryView 设置为 nil。没有帮助。

这是什么东西?我怎样才能让它消失?如果我想用它,我会怎么用?

【问题讨论】:

    标签: ios keyboard inputaccessoryview inputview


    【解决方案1】:

    通过另一个场所我收到了这个,它有效。感谢 Gopal Krishna Reddy。

    autocorrectionType = .no
    inputAssistantItem.leadingBarButtonGroups = []
    inputAssistantItem.trailingBarButtonGroups = []
    

    【讨论】:

      猜你喜欢
      • 2015-05-24
      • 1970-01-01
      • 2023-03-24
      • 2017-05-22
      • 1970-01-01
      • 2012-07-23
      • 1970-01-01
      • 2011-08-19
      • 1970-01-01
      相关资源
      最近更新 更多