| 1234567891011121314151617181920212223242526272829303132333435363738 |
- //
- // SearchViewController.swift
- // MTP2_iOS
- //
- // Created by Muchinfo on 2021/2/9.
- // Copyright © 2021 Muchinfo. All rights reserved.
- //
- import UIKit
- import JXSegmentedView
- /// 检索视图容器控制类
- class SearchViewController: BaseViewController {
-
- // MARK: - 属性列表
- /// 菜单项
- @IBOutlet weak var segmentView: JXSegmentedView! {
- didSet {
- segmentView.dataSource = dataSource
- segmentView.indicators = [indicator]
- segmentView.delegate = self
- }
- }
- // MARK: - 生命周期
- override func viewDidLoad() {
- super.viewDidLoad()
- // Do any additional setup after loading the view.
- /// titles
- self.dataSource.titles = ["客户", "商品", "合同", "计划", "业务", "财务", "期货", "敞口"]
- self.segmentView.reloadData()
- }
- }
- extension SearchViewController: JXSegmentedViewDelegate {
- func segmentedView(_ segmentedView: JXSegmentedView, didSelectedItemAt index: Int) {}
- }
|