Created
September 30, 2014 16:21
-
-
Save abrewing/8b523966e5b260eead1a to your computer and use it in GitHub Desktop.
Remove all subviews from a view
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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