Skip to content

Instantly share code, notes, and snippets.

@johncalvinyoung
Created July 26, 2012 04:18
Show Gist options
  • Save johncalvinyoung/3180228 to your computer and use it in GitHub Desktop.
Save johncalvinyoung/3180228 to your computer and use it in GitHub Desktop.
Remove all subviews from a view
- (void)removeAllSubviewsFrom:(UIView *)view {
NSArray *subviews = [view subviews];
for (UIView *subview in subviews) {
[subview removeFromSuperview];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment