标签:
bounds
PropertyThe bounds rectangle, which describes the view’s location and size in its own coordinate system.
bounds 矩形使用视图本身的坐标系统来的描述视图的位置和大小
OBJECTIVE-C
@property(nonatomic) CGRect bounds
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.
在屏幕上,bounds矩形呈现与frame矩形视图相同的可视部分。默认情况下,bounds的起点被设为(0,0) 但是你可以改变这个值来显示视图的不同部分。 bounds矩形的大小与frame矩形的大小结合,以至于改变其中的一个就会影响另一个。改变bounds大小会放大活着缩小视图相对于中心点。bounds的坐标系始终用点规定。
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.
Available in iOS 2.0 and later.
标签:
原文地址:http://www.cnblogs.com/baaingSheep/p/4277937.html