Forum Xamarin.iOS

Black window when navigating from App delegate to UI viewController in xamarin Ios

ShamnadShamnad USMember ✭✭✭

I'm getting a black window after navigating to a view controller. My app is calling a page from app delegate from the OpenUrl method.
` public override bool OpenUrl(UIApplication app, NSUrl url, string sourceApp, NSObject annotation)
var rurl = new Rivets.AppLinkUrl(url.ToString());

       // navController = new UINavigationController();

        var id = string.Empty;    

           if (rurl.InputQueryParameters.ContainsKey("id"))
            id = rurl.InputQueryParameters["id"];

        if (rurl.InputUrl.Host.Equals("products") && !string.IsNullOrEmpty(id))
            // var mainController = new UIViewController();

           // NSUserDefaults.StandardUserDefaults.SetBool(true, "ForgotPwdLinkClicked");
           return true;
            //var c = new ProductViewController();
            // UIApplication.SharedApplication.KeyWindow.RootViewController = c; 
            var c = new UpdatePasswordViewController();
           navigationController.ModalPresentationStyle = UIModalPresentationStyle.OverFullScreen;
                (c, true);
            //// return true ;
            ///*this.Window.RootViewController =
            //    c;*/
           // NSUserDefaults.StandardUserDefaults.SetBool(true, "ForgotPwdLinkClicked");
            return true;

These are my ViewController setting

also this is my view

Best Answer


Sign In or Register to comment.