Skip to content

Instantly share code, notes, and snippets.

@bennokress
Created May 22, 2017 13:22
Show Gist options
  • Save bennokress/a95b0f513f0a059830f12b198db5a4db to your computer and use it in GitHub Desktop.
Save bennokress/a95b0f513f0a059830f12b198db5a4db to your computer and use it in GitHub Desktop.
How to loop through all buttons in a view in Swift
for case let button as UIButton in self.view.subviews {
button.setTitleForAllStates("") // or something else
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment