From 0fb7413df54760ac6bd15b90b738e0706de1629e Mon Sep 17 00:00:00 2001 From: 杨锴 <841720330@qq.com> Date: 星期二, 05 十一月 2024 19:03:09 +0800 Subject: [PATCH] fix bug --- XQMuse/Root/Home/VC/SearchVC.swift | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/XQMuse/Root/Home/VC/SearchVC.swift b/XQMuse/Root/Home/VC/SearchVC.swift index 4da2fa7..606e913 100644 --- a/XQMuse/Root/Home/VC/SearchVC.swift +++ b/XQMuse/Root/Home/VC/SearchVC.swift @@ -106,11 +106,6 @@ }).disposed(by: disposeBag) } - override func viewDidDisappear(_ animated: Bool) { - super.viewDidDisappear(animated) - SearchCache.writeToPath(serchType) - } - override func setUI() { super.setUI() view.backgroundColor = UIColor(hexString: "f6f6f6") @@ -129,7 +124,8 @@ tableView.delegate = self tableView.dataSource = self tableView.separatorStyle = .none - tableView.isScrollEnabled = false + tableView.showsVerticalScrollIndicator = false + tableView.showsHorizontalScrollIndicator = false tableView.backgroundColor = .clear tableView.register(UINib(nibName: "SearchHotTCell", bundle: nil), forCellReuseIdentifier: "_SearchHotTCell") @@ -169,8 +165,13 @@ tf_search.resignFirstResponder() SearchCache.writeToList(tf_search.text!) + SearchCache.writeToPath(serchType) + let vc = SearchContentVC(content: tf_search.text!, type: serchType) jq_push(vc: vc) + + cacheSearchCollectionView.reloadData() + tf_search.text = "" } } -- Gitblit v1.7.1