swift3 - html swift 3 uikit link inside webview -


i have build simple intro page external links. , dont know how write external links, i'm trying on code below not working. secondly how can add more css. thanks!

import uikit  class viewcontroller: uiviewcontroller {      @iboutlet weak var mywebview: uiwebview!     override func viewdidload() {         super.viewdidload()         // additional setup after loading view, typically nib.          let webview = uiwebview()         mywebview.loadhtmlstring("<html><body><center><img src=\"logo.png\"><h1 style=\"font-family: helvetica\">faithway center</h1><h2 style=\"font-family: helvetica\"><a href=\"https://www.myhealthmatters.co.uk\">test</a></h2></body></html>", baseurl: nil)     }      override func didreceivememorywarning() {         super.didreceivememorywarning()         // dispose of resources can recreated.     }  } 


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -