UIWebViewで表示しているWebサイトのURLやtitleを取得する方法。 ■Titleの取得 NSString* title = [webView stringByEvaluatingJavaScriptFromString:@"document.title"]; ■URLの取得 NSString* url = [webView stringByEvaluatingJavaScriptFromString:@"document.URL"]; 参考記事: http://iphone-dev.jp/modules/d3forum/index.php?topic_id=72 http://www.htmq.com/js/index.shtml
![UIWebViewで表示中のURL、titleを取得する](https://cdn-ak-scissors.b.st-hatena.com/image/square/126e9c63960837b5815901e11e1f6c1303c17f2b/height=288;version=1;width=512/https%3A%2F%2Fblog.seesaa.jp%2Fimg%2Fogp_logo.png)