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

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -