Commit 8435be69 authored by Steven杜宇's avatar Steven杜宇

// 卡片使用指引显示

parent ea3ab492
......@@ -347,8 +347,17 @@ class YHMatchResultListViewController: YHBaseViewController {
[weak self] finish in
guard let self = self else { return }
self.cardContainer.isHidden = false
self.guideView.isHidden = false
self.view.bringSubviewToFront(self.guideView)
let showCardGuideKey = "kHasShowCardGuide"
if let hasShowCardGuide = UserDefaults.standard.object(forKey: showCardGuideKey) as? Bool, hasShowCardGuide == true {
self.guideView.isHidden = true
} else { // 第一次展示卡片使用指引
UserDefaults.standard.set(true, forKey: showCardGuideKey)
UserDefaults.standard.synchronize()
self.guideView.isHidden = false
self.view.bringSubviewToFront(self.guideView)
}
view1.removeFromSuperview()
view2.removeFromSuperview()
view3.removeFromSuperview()
......
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