Skip to content

Instantly share code, notes, and snippets.

@logicaroma
Created May 11, 2011 22:50
Show Gist options
  • Save logicaroma/967566 to your computer and use it in GitHub Desktop.
Save logicaroma/967566 to your computer and use it in GitHub Desktop.
Remove all the subviews
NSEnumerator *enumerator = [itemViewContainer.subviews objectEnumerator];
UIView *subview;
while (subview = [enumerator nextObject]) {
[subview removeFromSuperview];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment