Commit bfc886a9 authored by David黄金龙's avatar David黄金龙

启动页 处理 10025的 强更问题

parent 3284f9a1
......@@ -100,7 +100,7 @@ private extension YHStartPageViewController {
make.edges.equalToSuperview()
}
NotificationCenter.default.addObserver(self, selector: #selector(forceUpdateOp), name: YhConstant.YhNotification.didForceUpgradeNotifiction, object: nil)
if let key = UserDefaults.standard.value(forKey: "userAgreeProtocal") as? String,key.contains("true") {
startTimer()
......@@ -149,6 +149,12 @@ private extension YHStartPageViewController {
setupRootVC()
}
@objc func forceUpdateOp() {
cancelTimer()
agreeAlertView.isHidden = true
closeBtn.isHidden = true
}
//1.设置主窗口
func setupRootVC() {
gk_navigationBar.isHidden = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment