views:

20

answers:

0

Hi everyone, I'm trying to make a simple writing app for iPad.

I added UIButtons above the keyboard manually without using inputAccessoryView.

After launching my app in iPad or iPad simulator, I pressed UITextView to pop up the keyboard. Then if I pressed UIButton immediately after pressing any key in the keyboard, UIButton didn't respond. Similarly, in Safari, pressing "next" or "previous" button in a toolbar immediately after pressing any key in the keyboard doesn't work. (But adding bookmark or address text field respond immediately because they're apart from the keyboard.)

It seems that there is a short lag after pressing keys, so the user has to wait a little bit to tab other items than the keyboard.

I added UIButtons as subviews of the UIWindow keyboard. (previously I added them as subviews of the main view.) The lag problem was solved, but I couldn't press UIButton and a key at the same time or couldn't press any key while UIButton was pressed.

Is there a way to remove this lag so I can use UIButton like a part of the keyboard?

Thank you!

Kyu