 
 class DTDanTangController: BaseController, UIScrollViewDelegate {
     
-    var topScrollView = UIScrollView()
-    var topView = UIView() // 顶部背景
+    var topScrollView = UIScrollView() // 顶部
     let line = UIView() // 小横线
     let contentView = UIScrollView() // 下面的内容区域
     var selectedButton: UIButton! // 顶部背景上的按钮

            return
        }
        
        
        
        selectedButton.isSelected = false
        button.isSelected = true

    
    private func setTopView() {
        
        let count = self.childViewControllers.count
        let buttonW = ScreenWidth / 5
        
        
        topScrollView = UIScrollView(frame: CGRect(x: 0, y: NavHeight, width: ScreenWidth, height: HomeTitlesViewHeight))
        topScrollView.contentSize = CGSize(width: ScreenWidth / 5 * count , height: 0)
        topScrollView.showsHorizontalScrollIndicator = false
        view.addSubview(topScrollView)
        
        
        line.backgroundColor = GlobalColor
        line.frame.size.height = 2
