Gith
Gith

Reputation: 27

Xamarin iOS, Error while presenting a view from the main view controller

From the first viewController I am trying to show a second screen.

MobileSettingsViewController mobileView = new MobileSettingsViewController(Handle); PresentViewController(mobileView, false, null); I get the exception "Reason: Application tried to present modal view controller on itself. Presenting controller is <ViewController: 0x7fab1f75d730>."

I am not sure what I am missing here. I am new to iOS development. The Custom class and Storyboard ID are set to MobileSettingsViewController. I am missing something basic here and not able to understand what it is.

Thanks in advance.

Upvotes: 0

Views: 62

Answers (0)

Related Questions