1

I would like to hide the Undo and Redo bar button items in the Keyboard's Shortcut bar (available in iOS 9+). I read here that you can hide them by using this code. Unfortunately this hides also the Cut and Copy items which rather I prefer to keep.

let item : UITextInputAssistantItem = yourTextView.inputAssistantItem
item.leadingBarButtonGroups = [] // this hides Undo, Redo and also Cut, Copy and Paste
Community
  • 1
  • 1
Cue
  • 2,952
  • 3
  • 33
  • 54
  • "Cut" and "Copy" can still be used the old-fashioned way, by long-pressing on a valid field. With that, wouldn't removing the shortcut bar be a good idea? – SrB Jun 06 '16 at 19:19
  • Thank you for the comment huniserd_suraj, in fact, it might make sense – Cue Jun 06 '16 at 20:12

0 Answers0