Ok, so I'm making a web browser. It's fairly simple, and solely for learning purposes (I don't intend to sell it; it's so I can learn about the sdk). I know it couldn't even compete with Safari... Anyway..
So I have a title bar, and a button at the bottom, like this:
Code:
______________
Title Bar
______________
WebView
______________
Button
And when I click the button, the title bar is hidden. If it's clicked again, the title bar's hidden property is changed back to false. I want to grow WebView to fill the whitespace as well as the current area (making a bigger view) when the title bar is hidden, but to shrink it back when the title bar is shown again.
How could I go about doing this? For the record, I have a conditional on the button that allows me to change the property according to what it already is, so I just need to know how to resize the UIWebView.
Thanks!