User Tools

Site Tools


objective-c:uikit.framework:uiimageview.h:initwithframe
click
to support this page (eg 0,42 € or so) Thanks.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

objective-c:uikit.framework:uiimageview.h:initwithframe [2013/01/01 20:39] (current)
Mo created
Line 1: Line 1:
 +=====initWithFrame=====
  
 +<code objc>    
 +
 +- (id)initWithFrame:(CGRect)frame;
 + 
 +</code>
 +
 +Returns a UIImageView with a given frame.
 +
 +**Return Value**
 +- UIImageView
 +
 +
 +===== ObjC Sourcecode Example =====
 +
 +<code objc>
 +
 +    // ** Create a frame **
 +    CGRect frame = CGRectMake(40.0f, 40.0f, 100.0f, 100.0f);
 +    
 +    // ** Initialize imageView with frame**
 +    UIImageView *myImageView = [[UIImageView alloc]initWithFrame:frame];
 +    
 +    // ** Output **
 +    NSLog(@"%@", myImageView);
 +
 +</code>
 +
 +
 +==== Output for this example code ====
 +<code>
 +
 +2013-01-01 20:37:39.975 UIImageViewSample[572:11303] <UIImageView: 0x755b370; frame = (40 40; 100 100); userInteractionEnabled = NO; layer = <CALayer: 0x755ae70>>
 +
 +</code>
advertising
objective-c/uikit.framework/uiimageview.h/initwithframe.txt · Last modified: 2013/01/01 20:39 by Mo

Impressum