1

I have an app that allows the user to edit a UITextView, however the copy/paste/cut bar pops on the iPad, blocking some of the bottom of the interface, as the following screenshot shows:

enter image description here

I would prefer getting rid of it instead of adjusting the interface, is there any way to accomplish this?

NOTE: This only appears on the iPad!

EDIT: My UITextView is entirely editable, therefore, this is not a duplicate of How disable Copy, Cut, Select, Select All in UITextView ! Also, I don't want to just disable the buttons, I want the whole bottom bar to go away!

EDIT 2: Updated the image for more clarity, as some answers are addressing the small black one that appears near the cursor.

ThiagoAM
  • 1,432
  • 13
  • 20
  • Possible duplicate of [How disable Copy, Cut, Select, Select All in UITextView](https://stackoverflow.com/questions/1426731/how-disable-copy-cut-select-select-all-in-uitextview) – Quoc Nguyen Sep 27 '18 at 06:32

1 Answers1

4

You can hide this as below,

yourTextView.inputAssistantItem.leadingBarButtonGroups = []
yourTextView.inputAssistantItem.trailingBarButtonGroups = []
Kamran
  • 14,987
  • 4
  • 33
  • 51