代码之家  ›  专栏  ›  技术社区  ›  ThiagoAM

如何在编辑UITextView时移除iPad底部的复制/粘贴栏?

  •  0
  • ThiagoAM  · 技术社区  · 7 年前

    UITextView 但是,复制/粘贴/剪切条在iPad上弹出,挡住了部分界面底部,如以下截图所示:

    enter image description here

    注意:这只出现在iPad上!

    编辑 How disable Copy, Cut, Select, Select All in UITextView

    编辑2 :更新了图像以提高清晰度,因为有些答案是针对出现在光标附近的黑色小答案。

    1 回复  |  直到 7 年前
        1
  •  4
  •   Kamran    7 年前

    你可以把它藏在下面,

    yourTextView.inputAssistantItem.leadingBarButtonGroups = []
    yourTextView.inputAssistantItem.trailingBarButtonGroups = []