              // 4.保存label
             titleLabelsArr.append(titleLabel)
             
+            //给UILabel添加点击手势
+            let tapGes = UITapGestureRecognizer(target: self, action: #selector(titleLabelClick(_:)))
+            titleLabel.addGestureRecognizer(tapGes)
+            titleLabel.isUserInteractionEnabled = true
+            
         }
     }
 

    fileprivate var titlesArr : [String]
    fileprivate var style : YFPageStyle
    fileprivate lazy var titleLabelsArr : [UILabel] = [UILabel]()


    
    fileprivate lazy var scrollView : UIScrollView = {
