zoukankan      html  css  js  c++  java
  • UIView的层介绍

    UIView的层介绍

    subview在西安市到屏幕上时,是位于superview上层的。

    同一个view的subview时依照增加的顺序显示相应层的。越晚增加的subview显示在越上层,反之也是如此。

    用superview能够直接管理subview的层。

    -(void)insertSubview:(UIView *)view atIndex:(NSInteger)index;
    //插入一个view到特定层

    -(void)exchangeSubviewAtIndex:(NSInteger)index1 withSubviewAtIndex:(NSInteger)index2;
    //交换两个层的view

    -(void)insertSubview:(UIView *)view belowSubview:(UIView *)siblingSubview;
    //插入一个view到某一个view的下层

    -(void)insertSubview:(UIView *)view aboveSubview:(UIView *)siblingSubview;
    //插入一个view到某一个view的下层

    -(void)bringSubviewToFront:(UIView *)view;
    //将某一个view放在最上层

    -(void)sendSubviewToBack:(UIView *)view;
    //将某一个view放在最下层

    -(void)addSubview:(UIView *)view;
    //加入一个view

  • 相关阅读:
    3.5.3 数据排序;重复数值、缺失值处理
    3.5.1 pandas基础
    3.3 numpy
    数据准备和特征工程
    2.4函数
    2.3语句与控制流
    2.2数据结构与序列
    2.1Python基础知识
    五、MySQL安装
    四、Hadoop HA 集群搭建
  • 原文地址:https://www.cnblogs.com/yfceshi/p/6905932.html
Copyright © 2011-2022 走看看