     private var tabLabels = [UIButton]()
     private var bottomLine, tabIndicator : UIView!
     private var selectedIndex : Int = 0
+    private var enableParallex = true
     
     public var selectedViewController : UIViewController {
         get {

        titleScrollView.addSubview(tabIndicator)
        
        contentScrollView = UIScrollView(frame: CGRectZero)
        contentScrollView.autoresizingMask = .FlexibleWidth | .FlexibleBottomMargin
        contentScrollView.backgroundColor = UIColor.whiteColor()
        contentScrollView.delaysContentTouches = false
        contentScrollView.showsHorizontalScrollIndicator = false
        contentScrollView.pagingEnabled = true
        contentScrollView.delegate = self
        contentScrollView.setTranslatesAutoresizingMaskIntoConstraints(false)
        self.view.addSubview(contentScrollView)
    }
    

        self.reloadData()
    }
    
    public override func viewWillLayoutSubviews() {
        self.layout()
    }
    
    public override func willTransitionToTraitCollection(newCollection: UITraitCollection, withTransitionCoordinator coordinator: UIViewControllerTransitionCoordinator) {
        titleScrollView.delegate = nil
        contentScrollView.delegate = nil
        coordinator.animateAlongsideTransition(nil, completion: {_ -> Void in
            self.titleScrollView.delegate = self
            self.contentScrollView.delegate = self
            self.switchPage(self.selectedIndex, animated: false)
        })
