User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







objective-c:foundation.framework:nsnumber.h:initwithunsignedint

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(@"myUnsignedIntNumber: %@", myUnsignedIntNumber);
 

Output for this example code

2012-10-07 19:59:28.764 NSNumberSample[269:f803] myUnsignedIntNumber: 1

on the occasion of the current invasion of Russia in Ukraine

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

Impressum Datenschutz