SearchViewController.swift 1019 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // SearchViewController.swift
  3. // MTP2_iOS
  4. //
  5. // Created by Muchinfo on 2021/2/9.
  6. // Copyright © 2021 Muchinfo. All rights reserved.
  7. //
  8. import UIKit
  9. import JXSegmentedView
  10. /// 检索视图容器控制类
  11. class SearchViewController: BaseViewController {
  12. // MARK: - 属性列表
  13. /// 菜单项
  14. @IBOutlet weak var segmentView: JXSegmentedView! {
  15. didSet {
  16. segmentView.dataSource = dataSource
  17. segmentView.indicators = [indicator]
  18. segmentView.delegate = self
  19. }
  20. }
  21. // MARK: - 生命周期
  22. override func viewDidLoad() {
  23. super.viewDidLoad()
  24. // Do any additional setup after loading the view.
  25. /// titles
  26. self.dataSource.titles = ["客户", "商品", "合同", "计划", "业务", "财务", "期货", "敞口"]
  27. self.segmentView.reloadData()
  28. }
  29. }
  30. extension SearchViewController: JXSegmentedViewDelegate {
  31. func segmentedView(_ segmentedView: JXSegmentedView, didSelectedItemAt index: Int) {}
  32. }