码迷,mamicode.com
首页 > 其他好文 > 详细

[UIImageView]Bounds

时间:2015-02-06 20:23:14      阅读:163      评论:0      收藏:0      [点我收藏+]

标签:

bounds Property

The bounds rectangle, which describes the view’s location and size in its own coordinate system.

bounds 矩形使用视图本身的坐标系统来的描述视图的位置和大小

Declaration

OBJECTIVE-C

@property(nonatomicCGRect 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.

在屏幕上,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.

 

Import Statement

 

Availability

Available in iOS 2.0 and later.

[UIImageView]Bounds

标签:

原文地址:http://www.cnblogs.com/baaingSheep/p/4277937.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!