1

For my scenario, I have a UITableView with a UITextField for the first row. While I try to set custom toolbar for keyboard with UITextField.inputAccessoryView, it pushed my first row of textfield partially off the screen. This is not happening if I avoid adding the toolbar. Refer screen shot below:

Keyboard on screen; top row of table pushed up under the navigation bar

I tried with NSNotification with keyboardWillShow by reposition to first row of the tableview, but it just look awkward for the table pulling out and in. It might be something to do overriding UITableView/UIScrollView, but I am out of idea how to do this.

Would like to know how you guys resolve this.

Thanks you!

Peter Hosey
  • 95,783
  • 15
  • 211
  • 370
TonyTakeshi
  • 5,869
  • 10
  • 51
  • 72
  • How are you adding the tableView and toolbar? Through interface builder or programatically? –  Mar 15 '11 at 08:09
  • The toolbar is from interface builder, you can customize it with KeyboardAccessoryView. Just load the nib and set. – TonyTakeshi May 10 '11 at 05:36

1 Answers1

0

This question might help: iPhone Keyboard Covers UITextField

Community
  • 1
  • 1
arturovm
  • 1,215
  • 2
  • 12
  • 28