How can I add a toolbar above the keyboard?

后端 未结 9 1339
孤街浪徒
孤街浪徒 2020-11-27 10:35

I have created a UIToolBar programmatically and added a UITextField on it. Now, I need that toolbar to be above the keyboard when I click in anothe

9条回答
  •  再見小時候
    2020-11-27 11:15

    You can use the UITextFields inputAccessoryView property

        txtField.inputAccessoryView = toolBar;
    

提交回复
热议问题