<?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:examples</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-06-21T02:58:27+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/examples/fonts?rev=1708041979&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/examples/indexpath_for_custom_cell?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/examples/tabbarcontroller?rev=1708041979&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/objective-c/examples/xlog?rev=1708041979&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/examples/fonts?rev=1708041979&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:06:19+02:00</dc:date>
        <title>Custom Fonts</title>
        <link>https://code-reference.com/objective-c/examples/fonts?rev=1708041979&amp;do=diff</link>
        <description>Using a custom font in Cocoa touch


There are a lot of fonts provided by iOS. This example will use “Heiti SC”.

Importing a font not provided by iOS

Sample Font: Lobster.otf

1. Copy the font into your project.

2. Go to project info.plist and add the key: “fonts provided by application”. It should be kind of type array.

3. Insert the font as item into the array. The item font-name must be the name of your font-file (here: Lobster.otf).</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/examples/indexpath_for_custom_cell?rev=1708041979&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:06:19+02:00</dc:date>
        <title>indexPath.row for IBAction Button in a Custom Cell</title>
        <link>https://code-reference.com/objective-c/examples/indexpath_for_custom_cell?rev=1708041979&amp;do=diff</link>
        <description>to get the indexPath.row for a IBAction Button in your Custom Cell simply do this



/**
* 1. Connect the Button from the Custom Cell to your ViewController.h as IBAction
* 2. add the following code to your ViewController.m
*/

- (IBAction)buildButton:(id)sender forEvent:(UIEvent *)event {
    
    UIButton *button = (UIButton *)sender;
    UITableViewCell *cell = (UITableViewCell *)button.superview;
    UITableView *tableView = (UITableView *)cell.superview;
    NSIndexPath *indexPath = [tableV…</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/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/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/objective-c/examples/xlog?rev=1708041979&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:06:19+02:00</dc:date>
        <title>XLog for Objective-C</title>
        <link>https://code-reference.com/objective-c/examples/xlog?rev=1708041979&amp;do=diff</link>
        <description>add this code to your App-Prefix.pch


/**
 XLog a working version 
 source: http://code-reference.com
 */

/* remove the // to turn off Logs */
//#define RELEASE_MODE 1

#ifdef RELEASE_MODE
#define XLog(...)
#else

#define XLog(fmt, ...) NSLog(@&quot;%s line:%d &quot; fmt, __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
#endif</description>
    </item>
</rdf:RDF>
