c# - How to create a WebView for IOS -


how can implement uiwebview ios in visualstudio using xamarin.ios , c#? can create webview in storyboard how can define url?

and how can current url?

click on webview after adding webview in storyboard, properties show @ right-bottom of vs this:

enter image description here

add name screenshot shows, press enter. can load url webview in .cs file this:

            nsurl url = nsurl.fromstring("https://www.google.com");             nsurlrequest urlrequest = nsurlrequest.fromurl(url);             webview.loadrequest(urlrequest); 

to current url of webview when has loaded url via code:

            webview.request.url.absolutestring; 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -