 		accessibilityLabel = NSLocalizedString("STBTableViewIndex-LABEL", tableName: "STBTableViewIndex", bundle: NSBundle.mainBundle(), value: "Table index", comment: "")
 		accessibilityTraits = UIAccessibilityTraitAdjustable
 		
-		NSNotificationCenter.defaultCenter().addObserver(self, selector: "accessibilityVoiceOverStatusChanged", name: UIAccessibilityVoiceOverStatusChanged, object: nil)
-		NSNotificationCenter.defaultCenter().addObserver(self, selector: "setNeedsLayout", name: STBTableViewIndexLayoutDidChange, object: nil)
+		NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(STBTableViewIndex.accessibilityVoiceOverStatusChanged), name: UIAccessibilityVoiceOverStatusChanged, object: nil)
+		NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(UIView.setNeedsLayout), name: STBTableViewIndexLayoutDidChange, object: nil)
 		setNeedsLayout()
 	}
 	

	
	public override func accessibilityDecrement() {
		if currentIndex > 0 {
			currentIndex--
		}
		delegate?.tableViewIndexChanged(currentIndex, title: currentTitle)
		accessibilityValue = currentTitle.lowercaseString

	public func flashIndex() {
		view.alpha = 1.0
		if canAutoHide {
			NSTimer.scheduledTimerWithTimeInterval(1.0, target: self, selector: #selector(STBTableViewIndex.hideIndex), userInfo: nil, repeats: false)
		}
	}
	
