Created
February 5, 2015 08:19
-
-
Save macbaszii/d460f6b96ce3373b96ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@IBAction func touched(sender: AnyObject) { | |
if let button = sender as? Button { | |
button.setTitle("Touched", forState: .Normal) | |
} | |
} | |
@IBAction func touched(sender: AnyObject) { | |
if sender is UISegmentedControl { | |
let segmentedControl = sender as UISegmentedControl | |
let selectedIndex = segmentedControl.selectedSegmentIndex | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment