<?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</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-26T00:00:10+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://code-reference.com/c/string.h/strstr?rev=1361064726&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/examples/uiwebview_using_local_resources?rev=1408407926&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/wiki/syntax?rev=1501533425&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/uikit.framework/uilabel.h/initwithframe?rev=1356891983&amp;do=diff"/>
                <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/examples/tabbarcontroller?rev=1708041979&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/examples/navigationcontroller?rev=1708041979&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/examples/rootviewcontroller?rev=1708041979&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsnumber.h/isequaltonumber?rev=1708042345&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/uikit.framework/uialerview.h?rev=1708041978&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/c/string.h/strstr?rev=1361064726&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-17T02:32:06+02:00</dc:date>
        <title>strstr</title>
        <link>https://code-reference.com/c/string.h/strstr?rev=1361064726&amp;do=diff</link>
        <description>#include &lt;stdlib.h&gt;
char *strstr(const char *str1, const char *str2);


strstr C Sourcecode Example


/* 
 * strstr example code
 * http://code-reference.com/c/string.h/strstr
 */
#include &lt;stdio.h&gt;
#include &lt;string.h&gt;
    
int main ( void )
{
   char str[] = &quot;42 is the result or ? but what was the question&quot;;
   char *ptr;
   // set the Pointer ptr to &quot;or ?&quot;
   ptr = strstr (str, &quot;or ?&quot;);
   // replace the text with &quot;yes&quot;
   strncpy (ptr, &quot;yes&quot;, 3);
   printf(&quot;%s\n&quot;,str);
   return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/examples/uiwebview_using_local_resources?rev=1408407926&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-08-19T02:25:26+02:00</dc:date>
        <title>UIWebView using local resources</title>
        <link>https://code-reference.com/objective-c/examples/uiwebview_using_local_resources?rev=1408407926&amp;do=diff</link>
        <description>Sometimes you need or want to load a UIWebView displaying content provided with an app. If there is more then one site it might make sense to have an external .css or .js file for all your html content. Whatever, I was facing this problem currently and decided to provide my solution to you.</description>
    </item>
    <item rdf:about="https://code-reference.com/wiki/syntax?rev=1501533425&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-07-31T22:37:05+02:00</dc:date>
        <title>Formatting Syntax</title>
        <link>https://code-reference.com/wiki/syntax?rev=1501533425&amp;do=diff</link>
        <description>DokuWiki supports some simple markup language, which tries to make the datafiles to be as readable as possible. This page contains all possible syntax you may use when editing the pages. Simply have a look at the source of this page by pressing the Edit this page button at the top or bottom of the page. If you want to try something, just use the playground page. The simpler markup is easily accessible via quickbuttons, too.</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>
    <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/examples/tabbarcontroller?rev=1708041979&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:06:19+02:00</dc:date>
        <title>TabBarController</title>
        <link>https://code-reference.com/objective-c/examples/tabbarcontroller?rev=1708041979&amp;do=diff</link>
        <description>Add two UIViewController named RootViewController and SecondRootViewController to your empty project

Create a TabBarController for your project

First step import the RootViewController.h and SecondRootViewController.h in your AppDelegate


#import &quot;RootViewController.h&quot;
#import &quot;SecondRootViewController.h&quot;</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/examples/navigationcontroller?rev=1708041979&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:06:19+02:00</dc:date>
        <title>NavigationController</title>
        <link>https://code-reference.com/objective-c/examples/navigationcontroller?rev=1708041979&amp;do=diff</link>
        <description>Add a UIViewController named RootViewController to your empty project

Create a NavigationController for your project

First step import the RootViewController.h in your AppDelegate


#import &quot;RootViewController.h&quot;


Second step initialize NavigationController with RootViewController and add it to window</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/examples/rootviewcontroller?rev=1708041979&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:06:19+02:00</dc:date>
        <title>RootViewController</title>
        <link>https://code-reference.com/objective-c/examples/rootviewcontroller?rev=1708041979&amp;do=diff</link>
        <description>Add a UIViewController named RootViewController to your empty project

Add a RootViewController to your project

First step import the RootViewController.h in your AppDelegate


#import &quot;RootViewController.h&quot;


Second step initialize and add the RootViewController to window</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/foundation.framework/nsnumber.h/isequaltonumber?rev=1708042345&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:25+02:00</dc:date>
        <title>isEqualToNumber</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsnumber.h/isequaltonumber?rev=1708042345&amp;do=diff</link>
        <description>- (BOOL)isEqualToNumber:(NSNumber *)number;
 


Returns a Boolean value that indicates whether the receiver and a given number are equal.

ObjC Sourcecode Example



    NSNumber *myBoolNumberYES = [NSNumber numberWithBool:YES];
    NSNumber *myBoolNumberNO = [NSNumber numberWithBool:NO];
    
    NSNumber *myIntNumber2_a = [NSNumber numberWithInt:2];
    NSNumber *myIntNumber2_b = [NSNumber numberWithFloat:2.0];
    
    if ([myBoolNumberNO isEqualToNumber:myBoolNumberYES]) {
        NSLog(@&quot;NU…</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/uikit.framework/uialerview.h?rev=1708041978&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:06:18+02:00</dc:date>
        <title>UIAlertView</title>
        <link>https://code-reference.com/objective-c/uikit.framework/uialerview.h?rev=1708041978&amp;do=diff</link>
        <description>UIAlertView

----------

UIAlertView is a standard class in the UIKit framework. It is commonly used to display the state of something, or even just be used a way to communicate to the user in iOS applications.

Code


#import &lt;UIKit/UIKit&gt;

- (void) viewDidLoad {
   UIAlertView *alert = [[UIAlertView alloc]
                          initWithTitle:@&quot;Title Message&quot;
                          message:@&quot;This is a simple message!&quot;
                          delegate:self
                          canc…</description>
    </item>
</rdf:RDF>
