- addSubview: ? //??添加一個子控件
- 使用這個方法添加的子控件會被塞到subviews數(shù)組的最后面
- 可以使用下面的方法調(diào)整子控件在subview數(shù)組中的順序
- (void)insertSubview:(UIView *)view atIndex:(NSInteger)index; ? // 將子控件view插入到subviews數(shù)組的index位置
- (void)insertSubview:(UIView *)view belowSubview:(UIView *)siblingSubview;? // 將子控件view顯示到子控件siblingSubview的下面
- (void)insertSubview:(UIView *)view aboveSubview:(UIView *)siblingSubview;? // 將子控件view顯示到子控件siblingSubview的上面
- (void)bringSubviewToFront:(UIView *)view;? // 將子控件view放到數(shù)組的最后面杖玲,顯示在最上面
- (void)sendSubviewToBack:(UIView *)view;? // 將子控件view放到數(shù)組的最前面柏蘑,顯示在最下面