<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://code-reference.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://code-reference.com/feed.php">
        <title>Programming | Library | Reference - Code-Reference.com objective-c:uikit.framework:uilabel.h</title>
        <description></description>
        <link>https://code-reference.com/</link>
        <image rdf:resource="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-05-18T17:00:49+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/uikit.framework/uilabel.h/init?rev=1356893323&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/uikit.framework/uilabel.h/initwithframe?rev=1356891983&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Programming | Library | Reference - Code-Reference.com</title>
        <link>https://code-reference.com/</link>
        <url>https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://code-reference.com/objective-c/uikit.framework/uilabel.h/init?rev=1356893323&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2012-12-30T19:48:43+02:00</dc:date>
        <title>init</title>
        <link>https://code-reference.com/objective-c/uikit.framework/uilabel.h/init?rev=1356893323&amp;do=diff</link>
        <description>init

    

- (id)init;
 


Returns a UILabel.

Return Value
- UILabel

ObjC Sourcecode Example



    // ** Init label **
    UILabel *aLabel = [[UILabel alloc]init];
    
    // ** Output **
    NSLog(@&quot;%@&quot;, aLabel);



If you look at the output for this example code, you`ll see that the label`s frame values are “0 0 ; 0 0”!
This is because no frame was set yet. You need to set the frame of the label or it will not be visible after adding it to the view.

It`s recommend to use ”initWithFrame”.…</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/uikit.framework/uilabel.h/initwithframe?rev=1356891983&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2012-12-30T19:26:23+02:00</dc:date>
        <title>initWithFrame</title>
        <link>https://code-reference.com/objective-c/uikit.framework/uilabel.h/initwithframe?rev=1356891983&amp;do=diff</link>
        <description>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(@&quot;%@&quot;, aLabel);</description>
    </item>
</rdf:RDF>
