UITextField inputView displays undo, redo, paste buttons
问题 I have created a custom inputView for my UITextField . The view itself looks and functions great, but on the iPad I'm getting undo, redo, and paste buttons above my custom inputView . How do I remove those buttons? They don't have any functionality, but they should be removed. 回答1: With Swift 3 and XCode 8 I was able to remove the bar by removing the two button groups on the text field input: self.textField.inputAssistantItem.leadingBarButtonGroups.removeAll() self.textField