Custom inputAccessoryView push my UITableView first row partially off the screen

Posted by TonyMocha on Stack Overflow See other posts from Stack Overflow or by TonyMocha
Published on 2011-03-15T07:55:24Z Indexed on 2011/03/19 0:10 UTC
Read the original article Hit count: 182

Filed under:
|
|
|

Hi

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!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about cocoa-touch