User Tools

Site Tools


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

Differences

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

Link to this comparison view

objective-c:uikit.framework:uilabel.h:initwithframe [2012/12/30 19:25]
Mo
objective-c:uikit.framework:uilabel.h:initwithframe [2024/02/16 01:12] (current)
Line 1: Line 1:
 +=====initWithFrame=====
  
 +<code objc>    
 +
 +- (id)initWithFrame:(CGRect)frame;
 + 
 +</code>
 +
 +Returns a UILabel with a given frame.
 +
 +**Return Value**
 +- UILabel
 +
 +
 +===== ObjC Sourcecode Example =====
 +
 +<code objc>
 +
 +    // ** 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);
 +
 +</code>
 +
 +
 +==== Output for this example code ====
 +<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>>
 +
 +</code>

on the occasion of the current invasion of Russia in Ukraine

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

Impressum Datenschutz