How to set root view controller

后端 未结 4 633
长发绾君心
长发绾君心 2021-02-07 10:15

I set up an empty app with only an app delegate class, then subclassed a view controller class to create a xib to layout the app and make connections.

But when I tried

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-07 10:32

    Since you're apparently using .xib files, load your view controller and the set the window's rootViewController property to your view controller in -application:didFinishLaunchingWithOptions:.

提交回复
热议问题