| | |
| | | }).disposed(by: disposeBag) |
| | | } |
| | | |
| | | override func viewDidDisappear(_ animated: Bool) { |
| | | super.viewDidDisappear(animated) |
| | | SearchCache.writeToPath(serchType) |
| | | } |
| | | |
| | | override func setUI() { |
| | | super.setUI() |
| | | view.backgroundColor = UIColor(hexString: "f6f6f6") |
| | |
| | | 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") |
| | | |
| | |
| | | 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 = "" |
| | | } |
| | | } |
| | | |