- 浏览: 38705 次
- 性别:
- 来自: 北京
最近访客 更多访客>>
文章分类
最新评论
-
chenniaoc:
http://www.techotopia.com/index ...
objective-c NSString 使用详细指南
difference between frame and bounds Property
- 博客分类:
- iphone development
bounds
The bounds rectangle, which describes the view’s location and size in its own coordinate system.
@property(nonatomic) CGRect bounds
Discussion
On the screen, the bounds rectangle represents the same visible portion of the view as its frame rectangle. By default, the origin of the bounds rectangle is set to (0, 0) but you can change this value to display different portions of the view. The size of the bounds rectangle is coupled to the size of the frame rectangle, so that changes to one affect the other. Changing the bounds size grows or shrinks the view relative to its center point. The coordinates of the bounds rectangle are always specified in points.
Changing the frame rectangle automatically redisplays the receiver without invoking the drawRect: method. If you want the drawRect: method invoked when the frame rectangle changes, set the contentMode property to UIViewContentModeRedraw.
Changes to this property can be animated.
The default bounds origin is (0,0) and the size is the same as the frame rectangle’s size.
frame
The frame rectangle, which describes the view’s location and size in its superview’s coordinate system.
@property(nonatomic) CGRect frame
Discussion
This rectangle defines the size and position of the view in its superview’s coordinate system. You use this rectangle during layout operations to size and position the view. Setting this property changes the point specified by the center property and the size in the bounds rectangle accordingly. The coordinates of the frame rectangle are always specified in points.
Warning If the transform property is not the identity transform, the value of this property is undefined and therefore should be ignored.
Changing the frame rectangle automatically redisplays the receiver without invoking the drawRect: method. If you want the drawRect: method invoked when the frame rectangle changes, set the contentMode property to UIViewContentModeRedraw.
Changes to this property can be animated. However, if the transform property contains a non-identity transform, the value of the frame property is undefined and should not be modified. In that case, you can reposition the view using the center property and adjust the size using the bounds property instead.
The bounds rectangle, which describes the view’s location and size in its own coordinate system.
@property(nonatomic) CGRect bounds
Discussion
On the screen, the bounds rectangle represents the same visible portion of the view as its frame rectangle. By default, the origin of the bounds rectangle is set to (0, 0) but you can change this value to display different portions of the view. The size of the bounds rectangle is coupled to the size of the frame rectangle, so that changes to one affect the other. Changing the bounds size grows or shrinks the view relative to its center point. The coordinates of the bounds rectangle are always specified in points.
Changing the frame rectangle automatically redisplays the receiver without invoking the drawRect: method. If you want the drawRect: method invoked when the frame rectangle changes, set the contentMode property to UIViewContentModeRedraw.
Changes to this property can be animated.
The default bounds origin is (0,0) and the size is the same as the frame rectangle’s size.
frame
The frame rectangle, which describes the view’s location and size in its superview’s coordinate system.
@property(nonatomic) CGRect frame
Discussion
This rectangle defines the size and position of the view in its superview’s coordinate system. You use this rectangle during layout operations to size and position the view. Setting this property changes the point specified by the center property and the size in the bounds rectangle accordingly. The coordinates of the frame rectangle are always specified in points.
Warning If the transform property is not the identity transform, the value of this property is undefined and therefore should be ignored.
Changing the frame rectangle automatically redisplays the receiver without invoking the drawRect: method. If you want the drawRect: method invoked when the frame rectangle changes, set the contentMode property to UIViewContentModeRedraw.
Changes to this property can be animated. However, if the transform property contains a non-identity transform, the value of the frame property is undefined and should not be modified. In that case, you can reposition the view using the center property and adjust the size using the bounds property instead.
发表评论
-
property “assign” and “retain” for delegate
2012-06-25 01:11 11351 Answer active oldest vo ... -
如何从一个方法中返回来自于集合的对象
2012-06-25 00:20 1023- (ImageScrollView *)dequeue ... -
类似Tweetie那种拽下来就refresh的代码
2012-06-22 12:28 768http://github.com/enormego/EGOT ... -
Apple Offical : View Programming Guide for iOS
2012-06-16 17:06 988https://developer.apple.com/lib ... -
use UINavigationController inside a UITabBarController
2012-06-16 13:39 1547If you want to add a UINavigati ... -
关于ios中bounds与frame
2012-06-16 12:03 19401.ios中的bounds是指相对于视图自己的坐标,所以默认v ... -
Enum常量放入NSArray的方法
2010-09-07 23:14 2466ypedef enum { UIViewAnim ... -
objective-c NSString 使用详细指南
2010-09-02 11:36 1910Declaring Constant String Obje ... -
What is Core Data?
2010-08-31 22:03 1332Path to Success The Core Data P ... -
Iphone开发常用软件
2010-07-19 16:41 805粒子特效:particleillusion -
iPhone にインストールされているフォント一覧
2010-07-19 13:21 1547タイトルの通り、iPhone にインストールされているフォン ... -
Cocoaのメモリ管理(3)
2010-07-15 14:42 708保持と解除という方法 ... -
The cocos2d Tips & Tricks
2010-07-02 14:32 1062The cocos2d Tips & Tricks i ... -
Declared Properties
2010-06-30 14:13 875Writability These attributes s ...
相关推荐
iOS view的frame和bounds之区别.pdf
Inner Bounds on Performance of Radar and Communications Co-Existence
内存泄露检查工具BoundsChecker内存泄露检查工具BoundsChecker内存泄露检查工具BoundsChecker
内存泄露检测工具boundschecker11
The 11.3 release tackles the latest Microsoft development platform Visual Studio 2015 and Operating System Windows 10, while keeping true to its BoundsChecker roots set in native development. ...
BoundsChecker automatically pinpoints static, stack and heap memory errors, and resource leaks. Unlike ordinary memory-checking tools, BoundsChecker validates the latest Windows APIs including ...
BoundsChecker11.03 Part2,可支持最新VS2015
使用BoundsChecker检测内存泄漏
Boundschecker 9.01破解 C:\Program Files\Common Files\Compuware\libdlm32.dll 替换
用BoundsChecker检查内存泄漏
Fourier神经算子的普适逼近与误差界_On universal approximation and error bounds for Fourier Neural Operators.pdf
BoundsChecker Visual C++ Edition 是...8.2 - 2007年5月 - 最新版本完全的支持 Visual Studio 6.0 and Visual Studio .NET 2003。 5.0 - 1997年3月。 4.0 - 1996年 - 引入API验证功能。 2.0 for DOS - 1991年3月。
BoundsChecker是一个运行时错误检测工具,它主要定位程序在运行时期发生的各种错误。它通过驻留在 Visual C++ 开发环境内部的自动调试处理程序来加速应用程序的开发,缩短产品发布的时间。BoundsChecker 对于编程中...
Addressing tiles: same tile bounds with different indexes There are three main systems of tile adressing: Google XYZ, Microsoft QuadTree and from the open-source world comming TMS (Tile Map Service).
解决办件运行弹出List index out of bounds错误.
因为工作需要了解BoundsChecker测试工具,所以从网上找了些资料,研究了一个说明文档,进行了整理,并给出一些简单的示例,与大家分享。
BoundsChecker11.03 Part3,可支持最新VS2015
Bounds Checker 6.01 for VC,可以在vc 6 下使用,欢迎大家下载,这是part1,一共三部分。
BoundsChecker简介.doc,简单介绍如何运用BoundsChecker进行内存泄漏检测。
BoundsChecker suite v8.2_08.EXE