Skip to content

Instantly share code, notes, and snippets.

@searls
Created February 13, 2010 04:46
Show Gist options
  • Save searls/303255 to your computer and use it in GitHub Desktop.
Save searls/303255 to your computer and use it in GitHub Desktop.
#import <Foundation/Foundation.h>
@interface UIView(TXView)
- (void)removeAllSubviews;
@end
-----------------------------------------------------------------------------------
#import "UIViewAdditions.h"
@implementation UIView(TXView)
- (void)removeAllSubviews {
for (UIView *subView in self.subviews) {
[subView removeFromSuperview];
}
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment