         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)
        topTitlesView.addSubview(topScrollView)
        
        let itemW: CGFloat = 60
        let itemH: CGFloat = kNaviHeight
        topScrollView.contentSize = CGSize(width: itemW*CGFloat(titles.count), height: kNaviHeight)
        topScrollView.showsHorizontalScrollIndicator = false
        addSubview(topTitlesView)
        
        for i in 0..<titles.count {
            let label = UILabel()
            label.frame = CGRect(x: CGFloat(i)*itemW, y: 0, width: itemW, height: itemH)
            label.backgroundColor = UIColor.randomColor()
            label.textAlignment = .center
            label.font = UIFont.systemFont(ofSize: 14)
            label.text = titles[i]
            topScrollView.addSubview(label)
        }
    }
    
    func setupContentView() {

    fileprivate var topTitlesView: UIView!
    fileprivate var topScrollView: UIScrollView!
    fileprivate var contentCollectionView: UICollectionView!
    fileprivate var coverView: UIView!
    
    fileprivate var titles: [String]
    fileprivate var childVC: [UIViewController]
    fileprivate var parentVC: UIViewController
    
    fileprivate var titleLabels: [UILabel] = [UILabel]()
    fileprivate var startOffsetX : CGFloat = 0
    fileprivate var currentIndex : Int = 0
    
    // MARK: 计算属性
    fileprivate lazy var normalColorRGB : (r : CGFloat, g : CGFloat, b : CGFloat) = self.getRGBWithColor(UIColor(r: 0, g: 0, b: 0))
    
    fileprivate lazy var selectedColorRGB : (r : CGFloat, g : CGFloat, b : CGFloat) = self.getRGBWithColor(UIColor(r: 255, g: 0, b: 0))
    
    init(frame: CGRect, titles: [String], childVC: [UIViewController], parentVC: UIViewController) {
        self.titles = titles
