Opening a page by code in Xamarin.iOS -


below code navigates page in swift.
how can run code in xamarin.ios ?

let storyboard : uistoryboard = uistoryboard(name: "main", bundle:nil)  let nextviewcontroller = storyboard.instantiateviewcontrollerwithidentifier("nextview") nextviewcontroller self.presentviewcontroller(nextviewcontroller, animated:true, completion:nil) 

here's translation:

var storyboard = uistoryboard.fromname("main",null); var nextviewcontroller = storyboard.instantiateviewcontroller("nextview") nextviewcontroller; presentviewcontroller(nextviewcontroller, true, null); 

or if using async await:

var storyboard = uistoryboard.fromname("main",null); var nextviewcontroller = storyboard.instantiateviewcontroller("nextview") nextviewcontroller; await presentviewcontrollerasync(nextviewcontroller, true); 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -