<?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-06-21T04:30:48+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsnumber.h/initwith?rev=1708042346&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/c/mysql/mysql.h?rev=1362000920&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_thread_id?rev=1361837156&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_insert_id?rev=1361835291&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_escape_string?rev=1362010868&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/bash/quick_reference?rev=1449750950&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_info?rev=1361892865&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsarray.h/initwithobjects?rev=1708042341&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsnumber.h/initwithfloat?rev=1708042346&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_fetch_field?rev=1362094056&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_commit?rev=1361919057&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/uikit.framework/uilabel.h/initwithframe?rev=1356891983&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_affected_rows?rev=1361914596&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_fetch_fields?rev=1362096452&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/bash/examples/smbscan?rev=1357809303&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsnumber.h/initwithdouble?rev=1708042345&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/bash/how_to/tests?rev=1533268704&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/bash/how_to/run_command?rev=1708041844&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsdictionary.h/initwithobjectsandkeys?rev=1401479513&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsarray.h/init?rev=1401479235&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsnumber.h/initwithunsignedint?rev=1708042346&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsmutablearray.h/addobject?rev=1401479770&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsfilemanager.h/init?rev=1708042342&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsnumber.h/initwithinteger?rev=1708042346&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/uikit.framework/uiimageview.h/initwithframe?rev=1708042338&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/wiki/dokuwiki?rev=1708040894&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsnumber.h/initwithint?rev=1708042346&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsnumber.h/initwithbool?rev=1708042346&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsmutablearray.h/init?rev=1401479598&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/uikit.framework/uiimageview.h/init?rev=1357069265&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsstring.h/stringwithformat?rev=1708042344&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsnumber.h/descriptionwithlocale?rev=1708042347&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/foundation.framework/nsnumber.h/initwith?rev=1708042346&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:26+02:00</dc:date>
        <title>initWith</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsnumber.h/initwith?rev=1708042346&amp;do=diff</link>
        <description>- (id)initWithChar:(char)value;
- (id)initWithUnsignedChar:(unsigned char)value;
- (id)initWithShort:(short)value;
- (id)initWithUnsignedShort:(unsigned short)value;
- (id)initWithInt:(int)value;
- (id)initWithUnsignedInt:(unsigned int)value;
- (id)initWithLong:(long)value;
- (id)initWithUnsignedLong:(unsigned long)value;
- (id)initWithLongLong:(long long)value;
- (id)initWithUnsignedLongLong:(unsigned long long)value;
- (id)initWithFloat:(float)value;
- (id)initWithDouble:(double)value;
- (id)i…</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/c/mysql/mysql.h?rev=1362000920&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-27T22:35:20+02:00</dc:date>
        <title>mysql Overview</title>
        <link>https://code-reference.com/c/mysql/mysql.h?rev=1362000920&amp;do=diff</link>
        <description>mysql Overview
 Name                 Description              mysql_affected_rows mysql_affected_rows  mysql_autocommit mysql_autocommit  mysql_change_user mysql_change_user  mysql_character_set_name mysql_character_set_name  mysql_close mysql_close  mysql_commit mysql_commit  mysql_connect mysql_connect  mysql_create_db mysql_create_db  mysql_data_seek mysql_data_seek  mysql_debug mysql_debug  mysql_drop_db mysql_drop_db  mysql_dump_debug_info mysql_dump_debug_info  mysql_eof mysql_eof  mysql_e…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_thread_id?rev=1361837156&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-26T01:05:56+02:00</dc:date>
        <title>mysql_thread_id</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_thread_id?rev=1361837156&amp;do=diff</link>
        <description>unsigned long mysql_thread_id(MYSQL *mysql)


description of mysql_thread_id

mysql_thread_id is in work by code-reference.com 

if you are faster... don't hasitate and add it


no example at the moment


output of mysql_thread_id c example
  no example at the moment</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_insert_id?rev=1361835291&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-26T00:34:51+02:00</dc:date>
        <title>mysql_insert_id</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_insert_id?rev=1361835291&amp;do=diff</link>
        <description>my_ulonglong mysql_insert_id(MYSQL *mysql)


description of mysql_insert_id

mysql_insert_id is in work by code-reference.com 

if you are faster... don't hasitate and add it


no example at the moment


output of mysql_insert_id c example
  no example at the moment</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_escape_string?rev=1362010868&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-28T01:21:08+02:00</dc:date>
        <title>mysql_escape_string</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_escape_string?rev=1362010868&amp;do=diff</link>
        <description>unsigned long mysql_escape_string(MYSQL *mysql, char *to, const char *from, unsigned long length)


description of mysql_escape_string

mysql_escape_string escape a mysql string

” will be escaped
; will not be escaped

! mysql_escape_string is outdated use mysql_real_escape_string instead !</description>
    </item>
    <item rdf:about="https://code-reference.com/bash/quick_reference?rev=1449750950&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2015-12-10T13:35:50+02:00</dc:date>
        <title>Bash quick reference</title>
        <link>https://code-reference.com/bash/quick_reference?rev=1449750950&amp;do=diff</link>
        <description>Bash quick reference
Command	Description	Example     &amp;	Run the previous command in the background	ls &amp; &amp;&amp;	Logical AND	if [ “$foo” -ge “0” ] &amp;&amp; [ “$foo” -le “9”] ||	Logical OR	if [ “$foo” -lt “0” ] || [ “$foo” -gt “9” ] (not in Bourne shell) ^	Start of line	grep ”^foo” $	End of line	grep “foo$” =	String equality (cf. -eq) if [ “$foo” = “bar” ] !	Logical NOT	if [ “$foo” != “bar” ] $$	PID of current shell	echo “my PID = $$” $!	PID of last background command	ls &amp; echo “PID of ls = $!” $?	exit status…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_info?rev=1361892865&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-26T16:34:25+02:00</dc:date>
        <title>mysql_info</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_info?rev=1361892865&amp;do=diff</link>
        <description>const char *mysql_info(MYSQL *mysql)


description of mysql_info

A character string containing additional information about the most recent query. NULL if no information about the request are available.

compile with gcc mysql_info.c -o mysql_info `mysql_config –cflags –libs` -Wall</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/foundation.framework/nsarray.h/initwithobjects?rev=1708042341&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:21+02:00</dc:date>
        <title>initWithObjects</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsarray.h/initwithobjects?rev=1708042341&amp;do=diff</link>
        <description>initWithObjects

    

- (id)initWithObjects:(id)firstObj, ... NS_REQUIRES_NIL_TERMINATION;
 


Parameters
firstObj, secondObj...
Comma-separated objects ending with nil.

Return Value

An array initialized to include the parameters objects.

After an immutable array has been initialized in this way, it can’t be modified.</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/foundation.framework/nsnumber.h/initwithfloat?rev=1708042346&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:26+02:00</dc:date>
        <title>initWithFloat</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsnumber.h/initwithfloat?rev=1708042346&amp;do=diff</link>
        <description>initWithFloat

    
- (id)initWithFloat:(float)value;


ObjC Sourcecode Example



    float myFloat = 1.123456f;
    
    //******************** Initializing NSNumber Object *************************
    
    //** NSNumbers need to be released, if you`re not working with ARC! **
    
    NSNumber *myFloatNumber = [[NSNumber alloc]initWithFloat:myFloat];

    NSLog(@&quot;myFloatNumber:%@&quot;, myFloatNumber);</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_fetch_field?rev=1362094056&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-01T00:27:36+02:00</dc:date>
        <title>mysql_fetch_field</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_fetch_field?rev=1362094056&amp;do=diff</link>
        <description>MYSQL_FIELD *mysql_fetch_field(MYSQL_RES *result)


description of mysql_fetch_field

mysql_fetch_field provides a structure MYSQL_FIELD with information about the current field of quantitative results and advance the field pointer to the next field</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_commit?rev=1361919057&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-26T23:50:57+02:00</dc:date>
        <title>mysql_commit</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_commit?rev=1361919057&amp;do=diff</link>
        <description>my_bool mysql_commit(MYSQL *mysql)


description of mysql_commit

mysql_commit Commits the current transaction. 
The action of this function is subject to the value of the completion_type system variable. 

if the value of completion_type is 2, the server performs a release after terminating a transaction and closes the client connection. The client program should call mysql_close().</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/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/c/mysql/mysql.h/mysql_affected_rows?rev=1361914596&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-26T22:36:36+02:00</dc:date>
        <title>mysql_affected_rows</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_affected_rows?rev=1361914596&amp;do=diff</link>
        <description>my_ulonglong mysql_affected_rows(MYSQL *mysql)


description of mysql_affected_rows

Returns the number of the last UPDATE , DELETE, INSERT. Can be called for UPDATE, DELETE, or INSERT statements directly to mysql_query(). In SELECT statements, mysql_affected_rows() works like mysql_num_rows().</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_fetch_fields?rev=1362096452&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-01T01:07:32+02:00</dc:date>
        <title>mysql_fetch_fields</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_fetch_fields?rev=1362096452&amp;do=diff</link>
        <description>MYSQL_FIELD *mysql_fetch_fields(MYSQL_RES *result) 


description of mysql_fetch_fields

mysql_fetch_fields provides an array of information about the fields in a amount of result


#include &lt;stdio.h&gt; /* including standard library */ 
#include &lt;mysql/mysql.h&gt;
 
MYSQL *my;
MYSQL_RES *result;
MYSQL_FIELD *fields;

int main( void )
{

char host[20];
char user[20];
char pass[20];

my = mysql_init(NULL);

sprintf(host,&quot;localhost&quot;);
sprintf(user,&quot;username&quot;);
sprintf(pass,&quot;password&quot;);
 
if (my == NULL …</description>
    </item>
    <item rdf:about="https://code-reference.com/bash/examples/smbscan?rev=1357809303&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-01-10T10:15:03+02:00</dc:date>
        <title>smbscan.sh</title>
        <link>https://code-reference.com/bash/examples/smbscan?rev=1357809303&amp;do=diff</link>
        <description>Requirements

smbmount, smbclient,nmblookup (samba tools)

nmap (Network Mapper)

grep, sed, dialog


 a smb scanner written in shell by me 



#!/bin/bash
# This script scans smb servers a given network
# and mounts anonymous shared directories
# example: ./smbscan.sh or ./smbscan iprange
# http://www.code-reference.com/ 

# clean old temp files
#rm -f *.out

if [ `id -u` -ne 0 ]; then
  echo &quot;You must be root to use this script.&quot;
  exit 1
fi

FILESYSTEM=cifs
SMBM=/usr/bin/smbmount
SMBC=/usr/bi…</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/foundation.framework/nsnumber.h/initwithdouble?rev=1708042345&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:25+02:00</dc:date>
        <title>initWithDouble</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsnumber.h/initwithdouble?rev=1708042345&amp;do=diff</link>
        <description>- (id)initWithDouble:(double)value;
 


ObjC Sourcecode Example



    double myDouble = 3.14;

    //******************** Initializing NSNumber Object *************************
    
    //** NSNumbers need to be released, if you`re not working with ARC! **

    NSNumber *myDoubleNumber = [[NSNumber alloc]initWithDouble:myDouble];

    NSLog(@&quot;myDoubleNumber: %@&quot;, myDoubleNumber);</description>
    </item>
    <item rdf:about="https://code-reference.com/bash/how_to/tests?rev=1533268704&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-08-03T05:58:24+02:00</dc:date>
        <title>bash: &quot;How To&quot; ... utilize tests</title>
        <link>https://code-reference.com/bash/how_to/tests?rev=1533268704&amp;do=diff</link>
        <description>bash: &quot;How To&quot; ... utilize tests
operationwhatcodestringvariable equal to “xyz“if [ $STR == “xyz” ]variable unequal to “xyz“if [ $STR != “xyz” ]variable contains substring “xyz“if [[ $STR =~ “xyz” ]]variable is in list “abc” or “def” (or ...)if [[ $STR =~ ^(“abc”|“def”)$ ]]integervariable equal to nif [ $STR -eq n ]file“node” exists 
 (whatever type i.e. file, folder, ...)if [ -e “node” ]regular “filename” existsif [ -f “filename” ]create unique temporary filetouch /tmp/$$.tmpfind file “filename…</description>
    </item>
    <item rdf:about="https://code-reference.com/bash/how_to/run_command?rev=1708041844&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:04+02:00</dc:date>
        <title>bash: &quot;How To&quot; ... running commands</title>
        <link>https://code-reference.com/bash/how_to/run_command?rev=1708041844&amp;do=diff</link>
        <description>bash: &quot;How To&quot; ... running commands
operationwhatcodeexecutionresult of command executionRSLT=$?being rootif ($(id -u) -eq 0))execute command in variable “CMD” 
e.g. to programatically run same command  
 either on localhost or via added ssh prefixCMD=“command parameter ...”  
eval $CMD
work in progress</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/foundation.framework/nsdictionary.h/initwithobjectsandkeys?rev=1401479513&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-05-30T21:51:53+02:00</dc:date>
        <title>initWithObjectsAndKeys</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsdictionary.h/initwithobjectsandkeys?rev=1401479513&amp;do=diff</link>
        <description>initWithObjectsAndKeys

    

- (instancetype)initWithObjectsAndKeys:(id)firstObject, (NSString*)firstKey, ...
 


Initializes a newly allocated dictionary with entries constructed from the specified set of values and keys.

Return Value
- NSDictionary</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/foundation.framework/nsarray.h/init?rev=1401479235&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-05-30T21:47:15+02:00</dc:date>
        <title>init</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsarray.h/init?rev=1401479235&amp;do=diff</link>
        <description>init

    

- (id)init
 


Returns an empty array.

Return Value
- NSArray

ObjC Sourcecode Example



    // ** Init array **
    NSArray *myArray = [[NSArray alloc]init];
    
    // ** Output array **
    NSLog(@&quot;myArray: %@&quot;, myArray);



If you look at the output for this example code, you`ll see that an empty array was initialized! Because this array is immutable it would make more sense to use a init-method that creates it with some objects or at least one object. For example initWithObje…</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/foundation.framework/nsnumber.h/initwithunsignedint?rev=1708042346&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:26+02:00</dc:date>
        <title>initWithUnsignedInt</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsnumber.h/initwithunsignedint?rev=1708042346&amp;do=diff</link>
        <description>initWithUnsignedInt

    

- (id)initWithUnsignedInt:(unsigned int)value;
 


ObjC Sourcecode Example



    unsigned int myUnsignedInt = 1;

    //******************** Initializing NSNumber Object *************************
    
    //** NSNumbers need to be released, if you`re not working with ARC! **

    NSNumber *myUnsignedIntNumber = [[NSNumber alloc]initWithUnsignedInt:myUnsignedInt];

    NSLog(@&quot;myUnsignedIntNumber: %@&quot;, myUnsignedIntNumber);</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/foundation.framework/nsmutablearray.h/addobject?rev=1401479770&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-05-30T21:56:10+02:00</dc:date>
        <title>addObject</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsmutablearray.h/addobject?rev=1401479770&amp;do=diff</link>
        <description>addObject

The addObject: method is used when dealing with NSMutableArray. It is used to add items onto the stack of the array. A simpler example of this is to imagine a stack of paper. When calling the addObject method, it is essentially the same as a person adding a piece of paper onto the stack of paper.</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/foundation.framework/nsfilemanager.h/init?rev=1708042342&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:22+02:00</dc:date>
        <title>init</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsfilemanager.h/init?rev=1708042342&amp;do=diff</link>
        <description>init

    

- (id)init;
 


Return Value
- An initialized NSFileManager instance.

ObjC Sourcecode Example



    // ** Init FileManager **
    NSFileManager *fileManager = [[NSFileManager alloc]init];
    
    // ** Output FileManager **
    NSLog(@&quot;FilManager: %@&quot;, fileManager);</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/foundation.framework/nsnumber.h/initwithinteger?rev=1708042346&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:26+02:00</dc:date>
        <title>initWithInteger</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsnumber.h/initwithinteger?rev=1708042346&amp;do=diff</link>
        <description>initWithInteger

    

- (id)initWithInteger:(NSInteger)value NS_AVAILABLE(10_5, 2_0);



ObjC Sourcecode Example



    NSInteger myInteger = 20;
    
    //******************** Initializing NSNumber Object *************************
    
    //** NSNumbers need to be released, if you`re not working with ARC! **
    
    NSNumber *myIntegerNumber = [[NSNumber alloc]initWithInteger:myInteger];

    NSLog(@&quot;myIntegerNumber: %@&quot;, myIntegerNumber);</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/uikit.framework/uiimageview.h/initwithframe?rev=1708042338&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:18+02:00</dc:date>
        <title>initWithFrame</title>
        <link>https://code-reference.com/objective-c/uikit.framework/uiimageview.h/initwithframe?rev=1708042338&amp;do=diff</link>
        <description>initWithFrame

    

- (id)initWithFrame:(CGRect)frame;
 


Returns a UIImageView with a given frame.

Return Value
- UIImageView

ObjC Sourcecode Example



    // ** Create a frame **
    CGRect frame = CGRectMake(40.0f, 40.0f, 100.0f, 100.0f);
    
    // ** Initialize imageView with frame**
    UIImageView *myImageView = [[UIImageView alloc]initWithFrame:frame];
    
    // ** Output **
    NSLog(@&quot;%@&quot;, myImageView);</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/wiki/dokuwiki?rev=1708040894&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T00:48:14+02:00</dc:date>
        <title>DokuWiki</title>
        <link>https://code-reference.com/wiki/dokuwiki?rev=1708040894&amp;do=diff</link>
        <description>DokuWiki is a standards compliant, simple to use Wiki, mainly aimed at creating documentation of any kind. It is targeted at developer teams, workgroups and small companies. It has a simple but powerful Formatting Syntax which makes sure the datafiles remain readable outside the Wiki and eases the creation of structured texts. All data is stored in plain text files -- no database is required.</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/foundation.framework/nsnumber.h/initwithint?rev=1708042346&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:26+02:00</dc:date>
        <title>initWithInt</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsnumber.h/initwithint?rev=1708042346&amp;do=diff</link>
        <description>initWithInt

    

- (id)initWithInt:(int)value;



ObjC Sourcecode Example



    int myInt = 30;
    
    //******************** Initializing NSNumber Object *************************
    
    //** NSNumbers need to be released, if you`re not working with ARC! **
    
    NSNumber *myIntNumber = [[NSNumber alloc]initWithInt:myInt];

    NSLog(@&quot;myIntNumber: %@&quot;, myIntNumber);</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/foundation.framework/nsnumber.h/initwithbool?rev=1708042346&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:26+02:00</dc:date>
        <title>initWithBool</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsnumber.h/initwithbool?rev=1708042346&amp;do=diff</link>
        <description>initWithBool

    

- (id)initWithBool:(BOOL)value;
 


ObjC Sourcecode Example



    BOOL myBool = NO;
    
    //******************** Initializing NSNumber Objects *************************
    
    //** NSNumbers need to be released, if you`re not working with ARC! **
    
    NSNumber *myBoolNumber = [[NSNumber alloc]initWithBool:myBool];
    
    NSLog(@&quot;myBoolNumber: %@&quot;, myBoolNumber);</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/foundation.framework/nsmutablearray.h/init?rev=1401479598&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-05-30T21:53:18+02:00</dc:date>
        <title>init</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsmutablearray.h/init?rev=1401479598&amp;do=diff</link>
        <description>init

Inherited from NSArray.

    

- (id)init;
 


Returns an empty array.

Return Value
- NSMutableArray

ObjC Sourcecode Example



    // ** Init array **
    NSMutableArray *myArray = [[NSMutableArray alloc]init];
    
    // ** Output array **
    NSLog(@&quot;myArray : %@&quot;, myArray);</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/uikit.framework/uiimageview.h/init?rev=1357069265&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-01-01T20:41:05+02:00</dc:date>
        <title>init</title>
        <link>https://code-reference.com/objective-c/uikit.framework/uiimageview.h/init?rev=1357069265&amp;do=diff</link>
        <description>init

    

- (id)init;
 


Returns a UIImageView.

Return Value
- UIImageView

ObjC Sourcecode Example



    // ** Initialize imageView **
    UIImageView *myImageView = [[UIImageView alloc]init];
    
    // ** Output **
    NSLog(@&quot;%@&quot;, myImageView);</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/foundation.framework/nsstring.h/stringwithformat?rev=1708042344&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:24+02:00</dc:date>
        <title>stringWithFormat</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsstring.h/stringwithformat?rev=1708042344&amp;do=diff</link>
        <description>stringWithFormat

    
    + (id)stringWithFormat:(NSString *)format, ...    


Returns a string created by using a given format string as a template into which the remaining argument values are substituted

ObjC Sourcecode Example

     
    int a= 42;
        
        // string composed of single varable
       
        NSString *myString=[NSString stringWithFormat:@&quot;the answer to life the universe and everything is %i&quot;, a];
        
        NSLog(@&quot;MyString: %@&quot;, myString);
        
       
 …</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/foundation.framework/nsnumber.h/descriptionwithlocale?rev=1708042347&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:27+02:00</dc:date>
        <title>descriptionWithLocale</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsnumber.h/descriptionwithlocale?rev=1708042347&amp;do=diff</link>
        <description>descriptionWithLocale

    

- (NSString *)descriptionWithLocale:(id)aLocale
 


Returns a string that represents the contents of the receiver for a given locale.

ObjC Sourcecode Example



    //** Sample Datatypes **
    int myInt= 1000000;
    double myDouble = 3.14;
    float myFloat = 1.123456f;
    char myChar = 'w';
    
    //** Initializing NSNumber Objects **
    NSNumber *myIntNumber = [[NSNumber alloc]initWithInt:myInt];
    NSNumber *myDoubleNumber = [[NSNumber alloc]initWithDouble…</description>
    </item>
</rdf:RDF>
