Skip to content

Instantly share code, notes, and snippets.

@plantpurecode
Created October 5, 2011 04:36
Show Gist options
  • Save plantpurecode/1263647 to your computer and use it in GitHub Desktop.
Save plantpurecode/1263647 to your computer and use it in GitHub Desktop.
@interface UIView (JRHierarchyAdditions)
- (void)bringToFront;
- (void)sendToBack;
@end
@implementation UIView (JRHierarchyAdditions)
- (void)bringToFront {
[[self superview] bringSubviewToFront:self];
}
- (void)sendToBack {
[[self superview] sendSubviewToBack:self];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment