//定義一個BOOL值,將獲取的值不會空
let show:Bool = (UserDefaults.standard.object(forKey: "show") != nil)
//判斷
if show == false{
//判斷賦予的值是否相同
UserDefaults.standard.set(true, forKey: "show")
//初始化
let vc = ViewController()
//添加到根視圖
self.window?.rootViewController = vc
}else{
//定義位置
window = UIWindow(frame: UIScreen.main.bounds)
//背景顏色
window?.backgroundColor = UIColor.white
//進入跳轉(zhuǎn)頁面的位置
window?.rootViewController = DiBuViewController()
//定義key值
window?.makeKeyAndVisible()
}