     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 {

        if refreshDataBlock != nil {
            refreshDataBlock!(defaultSelectedIndex)
        }
        
    }
    
    /** 给顶部标签栏添加一条分割线 */
    func createTopScrollViewSplite(){
        let frame = CGRect(x: 0, y: topScrollViewHeight+0.2, 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
        self.layer.addSublayer(layer)
    }
    
    /** 创建页标签按钮 */
