mailto: link in UIWebView - Does Not work

前端 未结 4 1627
猫巷女王i
猫巷女王i 2021-02-12 12:37

Is the areanything special you need in html or Callbacks in a UIWebView to handle anchor tags with an href, or is there something special about an anchor tag with a mailto link

4条回答
  •  余生分开走
    2021-02-12 13:04

    I noticed that when running in the iPhone simulator, I could click on an HTTP link in my UIWebView and it would open in Safari, but when I clicked on a mailto link nothing would happen. But when I deployed the app to a real device, it worked. I expect the reason is because there is no mail app on the simulator, but there is Safari.

提交回复
热议问题