Return height between navBar and keyboard
self.view.bounds.size.height
but I get the height of the entire view down the navBar...
I'd like to get this size to assign it to the cell and to the textView inside it.
Thanks :)
You can't get the height of the keyboard until it is displayed. You'll need to register for one of the keyboard notifications and then check the UIKeyboardFrameEndUserInfoKey value. This will give you the frame for the keyboard. Use this to adjust the height of your view.
I don't know what happens if you change the rowHeight property on a table that's already displayed, but my guess is that it should do what you want, once you compute the height to set it to.
精彩评论