     private lazy var userSelectedChannelID = 100            //  点击按钮选择名字ID
     
     private lazy var viewArray: [UIViewController] = []     //  主视图的子视图数组
-    
+
 
     //  MARK: - Lifecycle
     required init?(coder aDecoder: NSCoder) {

            topScrollView.backgroundColor = topScrollViewBackgroundColor
            if rightTopButton.bounds.width > 0 && leftTopButton.bounds.width == 0 {
                rightTopButton.frame = CGRect(x: bounds.size.width - rightTopButton.bounds.width, y: 0,
                    width: rightTopButton.bounds.width, height: topScrollView.bounds.height)
                
                topScrollView.frame = CGRect(x: 0, y: 0,
                    width: bounds.size.width - rightTopButton.bounds.size.width, height: kHeightOfTopScrollView)
            } else if leftTopButton.bounds.width > 0 && rightTopButton.bounds.width == 0 {
                leftTopButton.frame = CGRect(x: kWidthOfLeftMargin, y: 0,
                    width: leftTopButton.bounds.width, height: topScrollView.bounds.height)
                
                topScrollView.frame = CGRect(x: leftTopButton.frame.origin.x + leftTopButton.frame.size.width, y: 0,
                    width: bounds.width - leftTopButton.bounds.width, height: kHeightOfTopScrollView)
            } else if rightTopButton.bounds.width > 0 && leftTopButton.bounds.width > 0 {
                leftTopButton.frame = CGRect(x: kWidthOfLeftMargin, y: 0,
                    width: leftTopButton.bounds.width, height: topScrollView.bounds.height);
                
                rightTopButton.frame = CGRect(x: bounds.width - rightTopButton.bounds.width, y: 0,
                    width: rightTopButton.bounds.width, height: topScrollView.bounds.height);
                
                topScrollView.frame = CGRect(x: leftTopButton.frame.origin.x + leftTopButton.frame.size.width, y: 0,
                    width: bounds.width - leftTopButton.bounds.width - rightTopButton.bounds.width, height: kHeightOfTopScrollView);
            }
            
            // 更新主视图的总宽度

            for i in 0 ..< viewArray.count {
                let listVC = viewArray[i]
                listVC.view.frame = CGRect(x: 0 + rootScrollView.bounds.width * CGFloat(i), y: 0,
                                           width: rootScrollView.bounds.width, height: rootScrollView.bounds.height)
            }
            
            //  滚动到选中的视图
