supersr--addSubview和 insertSubView 区别
2024-08-27 12:04:22
A addSubview B 是将B直接覆盖在A的最上层 例子: [self.view addSubview:scrollView];
A insertSubView B AtIndex:2 是将B插入到A的子视图index为2的位置(最底下是0)
A insertSubView B aboveSubview:C 是将B插入A并且在A已有的子视图C的上面
A insertSubView B belowSubview:C 是将B插入A并且在A已有的子视图C的下面
例子: [self.viewinsertSubview:scrollView belowSubview: control];
最新文章
- r-cnn学习(四):train_faster_rcnn_alt_opt.py源码学习
- ZeroMQ接口函数之 :zmq_term - 终结ZMQ环境上下文(context)
- 解释器模式(Interpreter Pattern)
- RSA加密算法总结
- matlab之waitbar() delete() close()
- Category
- jdbc 连接Oracle informix Mysql
- 如何使用 RDP 或 SSH 连接到 Azure 虚拟机
- Magento的布局(Layout),块(Block)和模板(Template)
- C语言的static和extern关键字
- Spring 创建bean的时机
- android里Toast的用法
- js--事件对象的理解4
- 【Flash ANE iOS】关于Flash ANE在iOS上面遇到的一些问题
- 新建play项目eclipsify后导入eclipse后无法debug调试
- spring学习总结——高级装配学习四(运行时:值注入、spring表达式)
- CodeForces 1151B Dima and a Bad XOR
- vue-calendar 基于 vue 2.0 开发的轻量,高性能日历组件
- 在配置hibernate.cfg.xml时需指定使用数据库的方言:
- bmi
热门文章
- CodeForces 55D Beautiful numbers
- 牡丹江.2014k(构造)
- hdu.1226.超级密码(bfs)
- Swift3.0P1 语法指南——集合类型
- javascript高级程序设计---CSS操作
- javascript基础07
- Unity手游之路<;十二>;手游资源热更新策略探讨
- Xcode 8 打印输出: Class PLBuildVersion is implemented in both...
- JS中try....catch
- 把ZenCart在线商店搭建到本地