Created
February 5, 2015 08:40
-
-
Save macbaszii/040f86b68ca79feeb5ba 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
for item in toolbarItems! { | |
if let barButtonItem = item as? UIBarButtonItem { | |
// Do something with UIBarButtonItem | |
} | |
if let segmentedControl = item as? UISegmentedControl { | |
// Do something with UISegmentedControl | |
} | |
} | |
for object in JSON as [NSDictionary] { | |
// Do something with JSON object | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment