In an application I’m working on, I display a UIWebView with a navigation bar. I wanted to display the title of the web page in the navigation bar when I load a page, but there doesn’t appear to be any obvious way to do it.
In this case, I use the delegate method webViewDidFinishLoad to obtain the page title and set the title of the navigation bar,
- (void)webViewDidFinishLoad:(UIWebView *)webView
navbar.title = title;
The result looks like this: