Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIToolbar above a Keyboard - iPhone SDK

I have seen this question posted several times with no useful answers. I am trying to place a toolbar above my UIKeyboard in my iPhone app, but am having difficulty. I found this example which works GREAT, except that my view is a UITableView instead of the standard [self.view addsubview:...]. Can anyone figure out how to apply this to a UITableView? In short, I have several UITextFields in my table cells, so I want the toolbar to appear above the keyboard for those cells.

Many thanks, Brett

like image 715
Brett Avatar asked Jul 17 '10 01:07

Brett


1 Answers

Just don't use the table view directly as a view.
Use a view that will have a table view inside it.
This way you will be able to use the tutorial as is...

In my opinion this way is much better - I don't have view controller with a single table view in any of my applications. There is always something additional on the screen...

In addition, I don't think that using parentViewController is good solution.
Not always you have one.
Actually, I don't even understand how it works for you...

like image 152
Michael Kessler Avatar answered Sep 28 '22 09:09

Michael Kessler