Skip to content

Instantly share code, notes, and snippets.

@chrislonge
Last active October 26, 2015 19:28
Show Gist options
  • Save chrislonge/c304363cb993253ddbd8 to your computer and use it in GitHub Desktop.
Save chrislonge/c304363cb993253ddbd8 to your computer and use it in GitHub Desktop.
Loop through all subviews in a view and add border
for (UIWebView *webView in self.overdraftSection.subviews) {
webView.layer.borderColor = [[UIColor blackColor] CGColor];
webView.layer.borderWidth = 2.0f;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment