Adding tool bar on top of the uikeyboard

前端 未结 5 1862
闹比i
闹比i 2020-12-29 06:56

I have a toolbar and i would like to place it on top of the keyboard.

In the keyboardwillshow notification, i tried to add toolbar to the keyboard but no luck, i can

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-29 07:46

    I think, you want an inputAccessoryView.

    Basically, you create a view and set it as a text field's or text view's input accessory view.

    [textField setInputAccessoryView:inputAccessoryView];
    

提交回复
热议问题