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
Post a Comment