     
     private func addSplitLineView() {
         self.splitLineView.frame = CGRect(x: 0, y: self.pageItemHeight, width: self.bounds.width, height: splitLineViewHeight)
+        self.splitLineView.backgroundColor = self.splitLineViewColor
         self.addSubview(splitLineView)
     }
     
     private func addContentScrollView() {
         let width = self.bounds.width
-        let height = self.bounds.height - self.pageItemHeight - splitLineViewHeight
-        let scrollView = UIScrollView(frame: CGRect(x: 0, y: self.pageItemHeight + splitLineViewHeight, width: width, height: height))
+        var height = self.bounds.height - self.pageItemHeight
+        var y = self.pageItemHeight
+        if !isHideSplit {
+            height = height - splitLineViewHeight
+            y = y + splitLineViewHeight
+        }
+        let scrollView = UIScrollView(frame: CGRect(x: 0, y: y, width: width, height: height))
         scrollView.delegate = self
         scrollView.contentSize = CGSize(width: (width * CGFloat(self.viewControllers.count)), height: height)
         scrollView.isPagingEnabled = true

        self.updatePageItemState(self.currentSelectedIndex, toIndex: indexPath.item)
        
        self.scrollView?.scrollRectToVisible(CGRect(x: width * CGFloat(indexPath.item), y: 0, width: width, height: height), animated: isAnimated)
       
        self.showSelectedViewController(indexPath.item)
        self.collectionView?.scrollToItem(at: indexPath, at: .centeredHorizontally, animated: true)
        
        self.lastSelectedCell = collectionView.cellForItem(at: indexPath) as? PageItemCell
    }
    

    // MARK: - UIScrollViewDelegate
    
    func scrollViewWillBeginDragging(_ scrollView: UIScrollView) {

        if self.pageItemWidth == 0 {
            return CGSize(width: self.expectedItemWidths[indexPath.item], height: pageItemHeight)
        } else {
            return CGSize(width: self.pageItemWidth, height: pageItemHeight)
        }
    }
    
