     public var tabMargin: CGFloat = 9
     /** 页面跳转是否开启动画，默认开启 */
     public var isAnimated: Bool = true
-    /** 
+    /**
      *  更新当前页面数据，回传当前界面的索引值。
      *  注意：必须在buildUI 方法调用之前实现
      */

        }
        topScrollView.frame = CGRect(x: 0, y: 0, width: self.frame.size.width, height: topScrollViewHeight)
        topScrollView.backgroundColor = topScrollViewBackgroundColor
        rootScrollView.frame = CGRect(x: 0, y: topScrollViewHeight, width: self.frame.size.width, height: self.frame.size.height-topScrollViewHeight)
        rootScrollView.contentSize = CGSize(width: self.frame.size.width*CGFloat(viewArray.count), height: 0)
        
        if isAutomatic {

            buidBtn(title: slideSwitchDto.title, frame: frame, tag: i)
            let rootViewOffSeX = CGFloat(i)*self.frame.size.width
            slideSwitchDto.view.frame.origin = CGPoint(x: rootViewOffSeX,y: 0)
            slideSwitchDto.view.frame.size = CGSize(width: self.frame.size.width, height: self.frame.size.height-topScrollViewHeight-0.5)
            rootScrollView.addSubview(slideSwitchDto.view)
        }
        
