objective c - UIImageView setFrame -
hi came across piece of code , wondering setframe was. couldn't find in uiimageview docs.
[largeimage setframe:cgrectmake(x_o, y_o, width, height)];
this code setting frame property using method syntax rather dotted notation. frame property of uiview objects (not uiimageview), , rectangle defines view's location , size in terms of parent view's co-ordinate system.
it defined as:
@property(nonatomic) cgrect frame contrast frame bounds, rect in view's own co-ordinate system. frame derived bounds.
view geometry, frames , bounds explained in detail here:
the class reference here:
Comments
Post a Comment