User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







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

initWithFrame

 
- (id)initWithFrame:(CGRect)frame;
 

Returns a UILabel with a given frame.

Return Value - UILabel

ObjC Sourcecode Example

    // ** Create a frame **
    CGRect frame = CGRectMake(40.0f, 40.0f, 100.0f, 32.0f);
 
    // ** Init label with frame **
    UILabel *aLabel = [[UILabel alloc]initWithFrame:frame];
 
    // ** Output **
    NSLog(@"%@", aLabel);

Output for this example code

2012-12-30 19:12:05.250 UILabelSample[1364:11303] <UILabel: 0x7457230; frame = (40 40; 100 32); clipsToBounds = YES; userInteractionEnabled = NO; layer = <CALayer: 0x7457f70>>
advertising
objective-c/uikit.framework/uilabel.h/initwithframe.txt · Last modified: 2012/12/30 19:26 by Mo

Impressum