- (void)webViewDidFinishLoad:(UIWebView *)webView {
    NSString *urlString = webView.request.URL.absoluteString;
    NSString *str = [webView stringByEvaluatingJavaScriptFromString:@"document.title"];
    self.title = str.length > 0 ? str : urlString;
}

 

相关文章:

  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-29
  • 2021-12-10
  • 2021-11-07
猜你喜欢
  • 2021-12-17
  • 2022-12-23
  • 2021-09-17
  • 2021-08-25
  • 2021-11-13
  • 2022-12-23
相关资源
相似解决方案