Currently I am using the Xamarin forms for creating the Android and iOS. Now I am using the OAuth2.0 for login functionality. So I have created one view controller in Xamarin iOS project. In the AppDelegate class, I am calling my controller view from the FinishedLaunching method.
Like:
var mainController = new ViewController(); // Your view controller here
mainController.ViewDidLoad();
in the ViewDidLoad write the logic of the OAuth2.0 and used the
this.PresentViewController(authGui, true, null)
. But in my project it is not redirecting to page and give the below warning
Warning: Attempt to present <UINavigationController: 0x7fde4a9d6800> on
<ViewController: 0x7fde4a53f9d0> whose view is not in the window hierarchy!