Tag: iqkeyboardmanager

如何隐藏IQKeyboardManager中的工具栏iOS Swift 3

我正在使用IQKeyboardManger库在使用键盘开始键入时滚动文本字段,但我不想显示其库中的默认工具栏。 以下是我用过的代码。 override func viewDidLoad() { super.viewDidLoad() self.chatTextField.inputAccessoryView = [[UIView alloc] init]; //This will remove toolbar which have done button. self.chatTextField.keyboardDistanceFromTextField = 8; //This will modify default distance between textField and keyboard. For exact value, please manually check how far your textField from the bottom of the page. Mine was 8pt. }