What I'm trying to do is to create something similar to the "find on page" search function in Safari on iPad.
I'm using a UIToolbar
with some items in it and attached it to the keyboard by setting it as an inputAccessoryView
on the UITextField
. Works like a charm, but there is one thing I can't figure out. In Safari, when you search for something, the keyboard disappears but the tool bar remains on the bottom of the screen.
Does anyone have a clue on how to accomplish this? The only solution I can think of is to respond to a keyboard dismissed event and then pull out the UIToolBar
and create a custom animation that moves it to the bottom of the screen. But this is hacky. I am looking for a more elegant solution. Something that can make me decide what to do with the input accessory view when the keyboard gets dismissed.