How to get page absolute path with UIWebView.
http://iphoneincubator.com/blog/windows-views/how-to-inject-javascript-functions-into-a-uiwebview
Remember: call this function after the webview loaded successfully.
方法1)
NSString *location = [webView stringByEvaluatingJavaScriptFromString:@"document.location"];
方法2)
NSLog(@"webView location = '%@'", webView.request.URL.absoluteString);
阅读(1780) | 评论(1) | 转发(0) |