User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







objective-c:uikit.framework:uiimageview.h:initwithframe

initWithFrame

 
- (id)initWithFrame:(CGRect)frame;
 

Returns a UIImageView with a given frame.

Return Value - UIImageView

ObjC Sourcecode Example

    // ** 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);

Output for this example code

2013-01-01 20:37:39.975 UIImageViewSample[572:11303] <UIImageView: 0x755b370; frame = (40 40; 100 100); userInteractionEnabled = NO; layer = <CALayer: 0x755ae70>>

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
objective-c/uikit.framework/uiimageview.h/initwithframe.txt · Last modified: 2024/02/16 01:12 (external edit)

Impressum Datenschutz