         contentCollectionView.isPagingEnabled = true
         contentCollectionView.dataSource = self
         contentCollectionView.delegate = self
+        contentCollectionView.bounces = false
         contentCollectionView.register(UICollectionViewCell.self, forCellWithReuseIdentifier: kContentCollectionCellIndentifier)
         addSubview(contentCollectionView)
     }

    }
}







     }
    
    func setupTitlesView() {
        
        topTitlesView = UIView(frame: CGRect(x: 0, y: 0, width: kScreenW, height: kNaviHeight))
        topScrollView = UIScrollView(frame: topTitlesView.bounds)
        topScrollView.delegate = self
        topTitlesView.addSubview(topScrollView)
        topScrollView.showsHorizontalScrollIndicator = false
        addSubview(topTitlesView)
        

        for (index, title) in titles.enumerated() {
            let label = UILabel()
            label.textColor = index == 0 ? .red : .black
            label.textAlignment = .center
            label.font = UIFont.systemFont(ofSize: 14)
            label.text = title
            label.backgroundColor = UIColor.clear
            label.isUserInteractionEnabled = true
            label.tag = 1000 + index
            titleLabels.append(label)
            topScrollView.addSubview(label)
        }
        
        var titleX: CGFloat = 0.0
        var titleW: CGFloat = 0.0
        let titleY: CGFloat = 0.0
        let titleH: CGFloat = kNaviHeight
        let titleMargin: CGFloat = 20
        
        for (index, label) in titleLabels.enumerated() {
            let rect = (label.text! as NSString).boundingRect(with: CGSize(width: CGFloat(MAXFLOAT), height: 0.0), options: .usesLineFragmentOrigin, attributes: [NSFontAttributeName : label.font], context: nil)
            titleW = rect.width
            if index == 0 {
                titleX = titleMargin * 0.5
            } else {
                let preLabel = titleLabels[index - 1]
                titleX = preLabel.frame.maxX + titleMargin
            }
            
            label.frame = CGRect(x: titleX, y: titleY, width: titleW, height: titleH)
        }
        
        topScrollView.contentSize = CGSize(width: titleLabels.last!.frame.maxX + titleMargin*0.5, height: 0)
        
        let firstLabel = titleLabels[0]
        let coverW: CGFloat = firstLabel.frame.width + 10
        let coverH: CGFloat = 25
        let coverX: CGFloat = firstLabel.frame.origin.x - 5
        let coverY: CGFloat = (topScrollView.frame.height - coverH) * 0.5
        coverView = UIView(frame: CGRect(x: coverX, y: coverY, width: coverW, height: coverH))
        coverView.alpha = 0.7
        coverView.backgroundColor = UIColor.lightGray
        coverView.layer.cornerRadius = coverH * 0.5
        topScrollView.addSubview(coverView)
        topScrollView.insertSubview(coverView, at: 0)
    }
    
    func setupContentView() {
