first off all I want to mention that I am very new to Xamarin.
I have created a login page for my app but I need a new page to use as main menu. The new page should be editable on Xcode to design it's UI. It also needs a ViewController.cs to run some code inside it.
Is there any possible ways that I can create a page which needs my requirements that I have just mentioned?
I solved the issue by creating a new ViewControl in Xcode then I specified it's class at identity inspector and I also gave it a storyboard ID from the same menu.
Then I wrote the following code to display the new ViewControl.
MainViewController mainViewController = this.Storyboard.InstantiateViewController("MainViewController") as MainViewController;
mainViewController.ModalPresentationStyle = UIModalPresentationStyle.FullScreen;
PresentViewController(mainViewController, true, null);
MainViewController is the class that I mentioned in identity inspector and second MainViewController which is inside the quotation mark is my storyboard ID.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.