         
         let index = label.tag
         let title = label.text
-        self.currentSelectedIndex = index
+        self._currentIndex = index
         
         didSelectItemWith?(index, title)
         if title == nil {

    fileprivate var allowToChangeThumb = false
    fileprivate var allowMove = true
    fileprivate var selectInitialItem = 0
    fileprivate var currentSelectedIndex = 0
    
    open var noItemSelected:Bool = false {
        didSet {            


extension TTSegmentedControl {
    
    public func selectItemAt(index: Int, animated: Bool = false) {
        guard (index >= 0 && index < itemTitles.count) else {
            print("[TTSegmentedControl]: Index \(index) is out of range.")
            return
        }
        
        _currentIndex = index
        
        guard isConfigurated else {
            return
        }
        
        let label = allItemLabels[index]
        selectedLabelsView.isHidden = noItemSelected
        changeThumbFrameForPoint(label.center, animated: animated)
    }
