How to change RootViewController in AppDelegate From Other ViewController?

后端 未结 3 581
清酒与你
清酒与你 2021-02-07 11:41

This is didFinishLaunchingWithOptions Method in AppDelegate. Let me explain scenario, I have developed sideMenu like facebook in my app, but now I have to change the sideMenu li

3条回答
  •  走了就别回头了
    2021-02-07 12:42

    Try this:

     *app = [[UIApplication sharedApplication] delegate];
    app.window.rootViewController = ;
    

    Don't forget to include necessary headers (your AppDelegate, for example) or you'll get CE. This one seems to work:enter image description here

提交回复
热议问题