开始使用键盘输入时,我正在使用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.
}