// 获取Appdelegate let myAppdelegate = UIApplication.shared.delegate as! AppDelegate // 获取Appdelegate的熟悉 if myAppdelegate.xxxxx != nil { xxxxx = myAppdelegate.xxxxx }
// 获取Appdelegate let myAppdelegate = UIApplication.shared.delegate as! AppDelegate // 获取Appdelegate的熟悉 if myAppdelegate.xxxxx != nil { xxxxx = myAppdelegate.xxxxx }
转载于:https://www.cnblogs.com/PLA-Artillery/p/6029206.html