• frame:根据父视图坐标系来确定自己的位置
  • bounds:该视图在自己坐标系的位置和大小
  • 修改bounds并不会引起视图位置的变化,会影响自身子视图的位置;修改frame会引起视图位置的变化
 UIView *view1 = [[UIView alloc] init];
view1.frame = CGRectMake(, , , );
[self.wiew addSubview:view1]; UIView *view2 = [[UIView alloc] initWithFrame:CGRectMake(, , , )];
view2.backgroundColor = [UIColor yellowColor];
[view1 addSubview:view2];

这时显示的视图是

此时没有设置bounds,View1自己的坐标远点是(0,0),这是添加View2时,以(0,0)为原点计算偏移(50,50);

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAP8AAAEdCAYAAADD87H3AAAKpmlDQ1BJQ0MgUHJvZmlsZQAASImVlgdUU1kax+97L73QApFO6B3pBJBeAyhIBxshARJKDIHQ7MjgCIwFFRGsyFBEwbEAYkMsWBgE7HWCDALqOFiwoTIPWMLO7tnds1/Ozfc7X+77v+/e3HvOHwBKF1soTIXlAEgTZIpC/TwZ0TGxDLwEwEAFyAMaMGNzMoQeISFBAI2Z/Pf4cBdAk/mW+aTWv//+X0Oem5DBAQAKQTmem8FJQ/kEOo5xhKJMABAeWtfNzhROcgnKiiK0QZT3T3LSNJ+Y5Phpvjo1JzzUC+XHABAobLYoCQDyMFpnZHGSUB0KAWVLAZcvQJmJsiuHx+ainIOyWVra8kmuRtko/p90kv6mGS/VZLOTpDy9lqkgePMzhKns3P9zO/53pKWKZ96hgw4KT+QfimYSumd1KcsDpSyIXxA8w3zu1Pwp5on9I2aYk+EVO8NctnfgDItTIjxmmC2afZafyQqfYdHyUKm+IHVBkFQ/gSXlhAyfsBlO5PuyZjiPFx41w1n8yAUznJESFjg7x0taF4lDpT0ninyla0zLmO2Nw559VyYv3H+2h2hpP9wEbx9pXRAhnS/M9JRqClNDZvtP9ZPWM7LCpM9mogdshpPZASGzOiHS/QHW6McB2AN0pZkJOZmTjXotF+aK+Em8TIYHelMSGCwBx8KMYW1pZQ/A5L2b/lvf0afuE0S/PlsT9QDg+B49f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8+jMP66hQOYAAAAASUVORK5CYII=" alt="" />

 UIView *view1 = [[UIView alloc] init];
view1.frame = CGRectMake(, , , );
view1.bounds = CGRectMake(, , , );
[self.wiew addSubview:view1]; UIView *view2 = [[UIView alloc] initWithFrame:CGRectMake(, , , )];
view2.backgroundColor = [UIColor yellowColor];
[view1 addSubview:view2];

这时显示的视图是

此时View1设置里bounds,自己的坐标原点变为(50,50),添加View2时,以(50,50)为原点计算偏移

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOAAAAEACAYAAACqHnrXAAAKpmlDQ1BJQ0MgUHJvZmlsZQAASImVlgdUU1kax+97L73QApFO6B3pBJBeAyhIBxshARJKDIHQ7MjgCIwFFRGsyFBEwbEAYkMsWBgE7HWCDALqOFiwoTIPWMLO7tnds1/Ozfc7X+77v+/e3HvOHwBKF1soTIXlAEgTZIpC/TwZ0TGxDLwEwEAFyAMaMGNzMoQeISFBAI2Z/Pf4cBdAk/mW+aTWv//+X0Oem5DBAQAKQTmem8FJQ/kEOo5xhKJMABAeWtfNzhROcgnKiiK0QZT3T3LSNJ+Y5Phpvjo1JzzUC+XHABAobLYoCQDyMFpnZHGSUB0KAWVLAZcvQJmJsiuHx+ainIOyWVra8kmuRtko/p90kv6mGS/VZLOTpDy9lqkgePMzhKns3P9zO/53pKWKZ96hgw4KT+QfimYSumd1KcsDpSyIXxA8w3zu1Pwp5on9I2aYk+EVO8NctnfgDItTIjxmmC2afZafyQqfYdHyUKm+IHVBkFQ/gSXlhAyfsBlO5PuyZjiPFx41w1n8yAUznJESFjg7x0taF4lDpT0ninyla0zLmO2Nw559VyYv3H+2h2hpP9wEbx9pXRAhnS/M9JRqClNDZvtP9ZPWM7LCpM9mogdshpPZASGzOiHS/QHW6McB2AN0pZkJOZmTjXotF+aK+Em8TIYHelMSGCwBx8KMYW1pZQ/A5L2b/lvf0afuE0S/PlsT9QDg+B49fymztWVLAWhG0OOOn63p1QEgRwTg9GmOWJQ1XcNMfmHRrmSBInqrNY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AEpfBKLAEdABuT4SS0CFAEZkMInsQhwBGRAjp/UIkARkAEpfBKLAEdABuT4SS0CFAEZkMInsQhwBGRAjp/UIkARkAEpfBKLAEdABuT4SS0CFAEZkMInsQhwBGRAjp/UIkARkAEpfBKLAEdABuT4SS0CFAEZkMInsQhwBGRAjp/UIkARkAEpfBKLAEdABuT4SS0CFAEZkMInsQhwBGRAjp/UIkARkAEpfBKLAEdABuT4SS0CFAEZkMInsQhwBGRAjp/UIkARkAEpfBKLAEdABuT4SS0CFAEZkMInsQhwBGRAjp/UIkARkAEpfBKLAEcgazp5CN500YoTAREgCagFJAFKLgIMARmQoSetCJAEZEASoOQiwBCQARl60ooASUAGJAFKLgIMARmQoSetCJAEZEASoOQiwBCQARl60ooASUAGJAFKLgIMARmQoSetCJAEZEASoOQiwBCQARl60ooASUAGJAFKLgIMARmQoSetCJAEZEASoOQiwBCQARl60ooASUAGJAFKLgIMARmQoSetCJAEZEASoOQiwBCQARl60ooASUAGJAFKLgIMARmQoSetCJAEZEASoOQiwBCQARl60ooASUAGJAFKLgIMARmQoSetCJAEZEASoOQiwBCQARl60ooASUAGJAFKLgIMARmQoSetCJAEZEASoOQiwBCQARl60ooASUAGJAFKLgIMARmQoSetCJAEZEASoOQiwBCQARl60ooASUAGJAFKLgIMARmQoSetCJAEZEASoOQiwBCQARl60ooASUAGJAFKLgIMARmQoSetCJAEZEASoOQiwBCQARl60ooASUAGJAFKLgIMARmQoSetCJAEZEASoOQiwBCQARl60ooASUAGJAFKLgIMARmQoSetCJAEZEASoOQiwBCQARl60ooASUAGJAFKLgIMARmQoSetCJAEZEASoOQiwBCQARl60ooASUAGJAFKLgIMARmQoSetCJAEZEASoOQiwBCQARl60ooASUAGJAFKLgIMARmQoSetCJAEZEASoOQiwBCQARl60ooASUAGJAFKLgIMARmQoSetCJAEZEASoOQiwBCQARl60ooASUAGJAFKLgIMARmQoSetCJAEZEASoOQiwBCQARl60ooASUAGJAFKLgIMARmQoSetCJAEZEASoOQiwBCQARl60ooASUAGJAFKLgIMARmQoSetCJAEZEASoOQiwBCQARl60ooASUAGJAFKLgIMARmQoSetCJAEZEASoOQiwBCQARl60ooASUAGJAFKLgIMARmQoSetCJAEZEASoOQiwBCQARl60ooASUAGJAFKLgIMARmQoSetCJAEZEASoOQiwBCQARl60ooASUAGJAFKLgIMARmQoSetCJAEZEASoOQiwBCQARl60ooASUAGJAFKLgIMARmQoSetCJAEZEASoOQiwBDImk7sTRepOBEQAZqAWkAaoTIQgfQJyIDps5NSBGgCMiCNUBmIQPoEZMD02UkpAjQBGZBGqAxEIH0CMmD67KQUAZqADEgjVAYikD4BGTB9dlKKAE1ABqQRKgMRSJ+ADJg+OylFgCYgA9IIlYEIpE9ABkyfnZQiQBOQAWmEykAE0icgA6bPTkoRoAnIgDRCZSAC6ROQAdNnJ6UI0ARkQBqhMhCB9AnIgOmzk1IEaAIyII1QGYhA+gRkwPTZSSkCNAEZkEaoDEQgfQIyYPrspBQBmoAMSCNUBiKQPgEZMH12UooATUAGpBEqAxFIn4AMmD47KUWAJiAD0giVgQikT+D/AZchNYrdsz77AAAAAElFTkSuQmCC" alt="" />

frame和bounds的区别的更多相关文章

  1. IOS 中frame与bounds的区别

    文章摘要:http://www.sendong.com/news1733.html bounds是指这个view在它自己坐标系的坐标和大小 而frame指的是这个view在它superview的坐标系 ...

  2. 深入探究frame和bounds的区别以及setbounds使用

    [转自]http://blog.csdn.net/hherima/article/details/39501857 在iOS开发中经常遇到两个词Frame和bounds,本文主要阐述Frame和bou ...

  3. iOS View的Frame和bounds之区别,setbounds使用(深入探究)

    前言: 在ios开发中经常遇到两个词Frame和bounds,本文主要阐述Frame和bound的区别,尤其是bound很绕,较难理解. 一.首先,看一下公认的资料: 先看到下面的代码你肯定就明白了一 ...

  4. iOS开发中frame与bounds的区别

    闲话不多说,先上两张图,大伙们就已经明白了: 显示出来的效果是这样子滴:  总结: 要理清这两者的区别,最主要的要理解一下几个概念:frame可以理解为可视的范围,而bounds可以理解为可视范围内的 ...

  5. frame与bounds的区别比较

    翻译文档上的
bounds是指这个view在它自己坐标系的坐标和大小 而frame指的是这个view在它superview的坐标系的坐标和大小
区别主要在坐标系这一块.

很明显一个是自己为原点的坐标 ...

  6. ios基础之 view的frame 与 bounds 的区别 (转)

    前言: 学习ios开发有一段时间了,项目也做了两个了,今天看视频,突然发现view的frame和bound两个属性,发现bound怎么也想不明白,好像饶你了死胡同里,经过一番尝试和思考,终于弄明白bo ...

  7. ios view的frame和bounds之区别(位置和大小)

    前言: 学习ios开发有一段时间了,项目也做了两个了,今天看视频,突然发现view的frame和bound两个属性,发现bound怎么也想不明白,好像饶你了死胡同里,经过一番尝试和思考,终于弄明白bo ...

  8. iOS开发 frame 与 bounds 的区别与关系 转自隔叶黄莺

    frame和bounds是UIView中的两个属性(property). frame指的是:该view在父view坐标系统中的位置和大小.(参照点是父亲的坐标系统) bounds指的是:该view在本 ...

  9. frame和bounds的区别与联系

    首先先看一下下面两个属性的代码实现: -(CGRect)frame{ return CGRectMake(self.frame.origin.x,self.frame.origin.y,self.fr ...

  10. frame与bounds的区别

    原来你M,frame.size和bounds.size不总是一样的 在UIViewController的- (void)willAnimateRotationToInterfaceOrientatio ...

随机推荐

  1. Contributing to Open Source on GitHub(转)

    A great way to get involved in open source is to contribute to the existing projects you’re using. G ...

  2. Append和AppendTo

    Append和AppendTo Append向标签中追加内容 AppendTo把所有匹配的元素追加到元素集合中

  3. 转: vim简明教程

    vim的学习曲线相当的大(参看各种文本编辑器的学习曲线),所以,如果你一开始看到的是一大堆VIM的命令分类,你一定会对这个编辑器失去兴趣的.下面的文章翻译自<Learn Vim Progress ...

  4. Java使用freemarker导出word和excel

    www.linxiaosheng.com/post/2013-12-05/40060346181 https://github.com/upyun/java-sdk

  5. PhoneGap 3.0 安装

    PhoneGap 3.0  已经出来有一段时间了.3.0 提供了使用Node.js 安装,使用命令行创建.编译.运行项目.也就是可以抛弃eclipse,完全使用命令.记事本开发phonegap 项目了 ...

  6. Python生成随机数的方法

    这篇文章主要介绍了Python生成随机数的方法,有需要的朋友可以参考一下 如果你对在Python生成随机数与random模块中最常用的几个函数的关系与不懂之处,下面的文章就是对Python生成随机数与 ...

  7. 如何让Table显示滚动条

    Table显示滚动条,要先把table放到一个div中,div的长度和宽度要固定,控制overflow属性为scroll <div style="width:700px; height ...

  8. The Longest Straight(二分,离散化)

     Problem 2216 The Longest Straight Accept: 7    Submit: 14 Time Limit: 1000 mSec    Memory Limit : 3 ...

  9. 定制ToolChain for ARM

    **************************************************************************编写:王卫无,北京讯业互联科技有限公司版本号:V1. ...

  10. jdbc操作步骤和preparedStatment相比Statment的好处

    java操纵数据库封装了一组API,通过这组API可以透明的操作各种数据库,一般来讲,操纵数据库的步骤是: 一. try{ 1.加载数据库驱动 Class.forName("数据库驱动类&q ...