Does the inputAccessoryView have to be the top most view?

83 views Asked by At

Is it possible to move the inputAccessoryView so that it's behind another view?

Thanks

1

There are 1 answers

0
Erakk On BEST ANSWER

After reading the documentation on UIResponder, i don't think so. inputAccessoryViews are attached to the keyboard, so unless the keyboard can be under another view, the inputAccessoryView can't.

You can though, create a normal view with the width of the keyboard, use the keyboard notifications to position your view on the screen right above the keyboard. Since this view won't be "attached" to the keyboard, you can put them under your desired view, for whatever effect you need.

UIKeyboardWillShowNotification
UIKeyboardDidShowNotification
UIKeyboardWillHideNotification
UIKeyboardDidHideNotification