Launching ViewController from AppDelegate

后端 未结 6 2058
情书的邮戳
情书的邮戳 2021-02-03 09:51

I have a custom URL scheme and i want to open a certain ViewController which is not the root when i go to this URL. I have been able to do that and what remains is

6条回答
  •  情深已故
    2021-02-03 10:43

    If you want to push a UIViewController, you probably are forgetting to init it with the NibName:

    LoginViewController *loginViewController = [[LoginViewController alloc]initWithNibName:@"LoginViewController" bundle:nil];
    

提交回复
热议问题