             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)
+            slideSwitchDto.view.frame.size = CGSize(width: self.frame.size.width, height: self.frame.size.height-topScrollViewHeight-0.5)
             rootScrollView.addSubview(slideSwitchDto.view)
         }
         

        if refreshDataBlock != nil {
            refreshDataBlock!(defaultSelectedIndex)
        }
    
    }
    
    /** 给顶部标签栏添加一条分割线 */
    func createTopScrollViewSplite(){
        let frame = CGRect(x: 0, y: topScrollViewHeight-0.3, width: self.frame.size.width, height: 0.3)
        let layer = CALayer()
        layer.backgroundColor = UIColor(red: 121/255, green: 121/255, blue: 121/255, alpha: 1).cgColor
        layer.frame = frame
        topScrollView.layer.addSublayer(layer)
    }
    
    /** 创建页标签按钮 */

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