简体   繁体   中英

WKWebView/UIWebView get website icon

How can I get the apple-touch-icon or logo of the website using WKWebView or UIWebView? I've read that getting a favicon is possible, however I plan on using the website's logo as a short cut like in iOS Safari and a favicon is too small for it. Is there a way to scrape metadata from a website in webView to get <link rel="apple-touch-icon" href="apple-touch-icon.png"> ?

在Firefox for iOS中,我们使用用户脚本 (链接到Github上的代码)来查找图标,然后将它们传递回应用程序,该应用程序使用本机代码 (链接到Github上的代码)下载它们。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM