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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -