I created programmatically a view that contains a navigation bar like Safari, a web view and a toolbar… In the navigation bar I put a label and two text field, one for type URL and one for type search.
But how can I use the label to show the web view page title?
I tried this code but don’t work! 🙁
nomeSito.text = [webView stringByEvaluatingJavaScriptFromString:@"document.title"];
How can I do this?
Thanks a lot! 🙂
That code will work, but only if you put it in the
webViewDidFinishLoad:delegate method.