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

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -