I am creating xamarin.IOS app in visual studio where i want to navigate to different view controllers depending upon the situation. so, i added code for navigation as,
var controller = this.Storyboard.InstantiateViewController("New") as UIViewController;
NavigationController.PushViewController(controller, true);
I have added a view controller in storyboard with Both Storyboard id and restoration is set to New. (Even selected use storyboard id checkbox).
But, I keep on getting the error
Foundation.MonoTouchException: Objective-C exception thrown. Name: NSInvalidArgumentException Reason: Storyboard () doesn't contain a view controller with identifier 'New'.
How to navigate to a new view controller.???