1.移除Main Interface,如下图:
移除.png
2.修改Info.plist文件,将下面的代码注释掉.如下图:
注释.png
3.给AppDelegate添加rootViewController
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
self.window = UIWindow.init(frame: UIScreen.main.bounds)
self.window?.backgroundColor = UIColor.white
self.window?.makeKeyAndVisible()
let tabBarVC = MyTabBarController()
self.window?.rootViewController = tabBarVC
return true
}
网友评论