Skip to content

Instantly share code, notes, and snippets.

@abrewing
Created September 30, 2014 16:21
Show Gist options
  • Select an option

  • Save abrewing/8b523966e5b260eead1a to your computer and use it in GitHub Desktop.

Select an option

Save abrewing/8b523966e5b260eead1a to your computer and use it in GitHub Desktop.
Remove all subviews from a view
for (UIView *view in [self subviews]){
if ([view isKindOfClass:[UIView class]]){
[view removeFromSuperview];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment