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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -