标签:
//从主view删除- (void)removeFromSuperview;//插入到指定索引位置- (void)insertSubview:(UIView *)view atIndex:(NSInteger)index;//交换两view的索引位置- (void)exchangeSubviewAtIndex:(NSInteger)index1 withSubviewAtIndex:(NSInteger)index2;//加到view上- (void)addSubview:(UIView *)view;//插入到siblingSubview下层- (void)insertSubview:(UIView *)view belowSubview:(UIView *)siblingSubview;//插入到siblingSubview下层- (void)insertSubview:(UIView *)view aboveSubview:(UIView *)siblingSubview;- (void)bringSubviewToFront:(UIView *)view;- (void)sendSubviewToBack:(UIView *)view;- (void)didAddSubview:(UIView *)subview;- (void)willRemoveSubview:(UIView *)subview;- (void)willMoveToSuperview:(UIView *)newSuperview;- (void)didMoveToSuperview;- (void)willMoveToWindow:(UIWindow *)newWindow;- (void)didMoveToWindow;- (BOOL)isDescendantOfView:(UIView *)view; // returns YES for self.- (UIView *)viewWithTag:(NSInteger)tag; // recursive search. includes self 通过tag值找到某个view标签:
原文地址:http://blog.csdn.net/ytuzhangziyao/article/details/43455579