I have a view with a toolbar presented by a UINavigationController.
When I am handling UIKeyboardWillShowNotification, I'm scrolling the entire screen upwards by the height of the keyboard. The thing is when the keyboard is shown, the bottom toolbar is not, so I need to scroll the screen upwards by only (keyboard.height - toolbar.height).
But how to get the height of the toolbar?
Thanks
In order to increase the height of the navbar , you have to increase the size of the children > li > a . Keep in mind that the children already have vertical padding of 15px.
You just should check the toolbar frame.
self.navigationController.toolbar.frame.size.height
Of course, it only works if you have a navigation controller...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With