Use NSNumber to add a value to NSArray or NSDictionary

Source: Internet
Author: User

<A class = referer href = "http: // www.2cto.com" target = _ blank minmax_bound = "true"> @ interface </A> NSNumber: NSValue
02
03-(char) charValue;
04-(unsigned char) unsignedCharValue;
05-(short) implements value;
06-(unsigned short) unsigned1_value;
07-(int) intValue;
08-(unsigned int) unsignedIntValue;
09-(long) longValue;
10-(unsigned long) unsignedLongValue;
11-(long) longLongValue;
12-(unsigned long) unsignedLongLongValue;
13-(float) floatValue;
14-(double) doubleValue;
15-(BOOL) boolValue;
16-(NSInteger) integerValue NS_AVAILABLE (10_5, 2_0 );
17-(NSUInteger) unsignedIntegerValue NS_AVAILABLE (10_5, 2_0 );
18
19-(NSString *) stringValue;
20
21-(NSComparisonResult) compare :( NSNumber *) otherNumber;
22
23-(BOOL) isw.tonumber :( NSNumber *) number;
24
25-(NSString *) descriptionWithLocale :( id) locale;
26
27 <A class = referer href = "http://my.oschina.net/u/567204" target = _ blank minmax_bound = "true"> @ end </A>
28
29 <A class = referer href = "http://my.oschina.net/interface" target = _ blank minmax_bound = "true"> @ interface </A> NSNumber (NSNumberCreation)
30
31-(id) initWithChar :( char) value;
32-(id) initWithUnsignedChar :( unsigned char) value;
33-(id) initWithShort :( short) value;
34-(id) initWithUnsignedShort :( unsigned short) value;
35-(id) initWithInt :( int) value;
36-(id) initWithUnsignedInt :( unsigned int) value;
37-(id) initWithLong :( long) value;
38-(id) initWithUnsignedLong :( unsigned long) value;
39-(id) initWithLongLong :( long) value;
40-(id) initWithUnsignedLongLong :( unsigned long) value;
41-(id) initWithFloat :( float) value;
42-(id) initWithDouble :( double) value;
43-(id) initWithBool :( BOOL) value;
44-(id) initWithInteger :( NSInteger) value NS_AVAILABLE (10_5, 2_0 );
45-(id) initWithUnsignedInteger :( NSUInteger) value NS_AVAILABLE (10_5, 2_0 );
46
47 + (NSNumber *) numberWithChar :( char) value;
48 + (NSNumber *) numberWithUnsignedChar :( unsigned char) value;
49 + (NSNumber *) numberWithShort :( short) value;
50 + (NSNumber *) numberWithUnsignedShort :( unsigned short) value;
51 + (NSNumber *) numberWithInt :( int) value;
52 + (NSNumber *) numberWithUnsignedInt :( unsigned int) value;
53 + (NSNumber *) numberWithLong :( long) value;
54 + (NSNumber *) numberWithUnsignedLong :( unsigned long) value;
55 + (NSNumber *) numberWithLongLong :( long) value;
56 + (NSNumber *) numberWithUnsignedLongLong :( unsigned long) value;
57 + (NSNumber *) numberWithFloat :( float) value;
58 + (NSNumber *) numberWithDouble :( double) value;
59 + (NSNumber *) numberWithBool :( BOOL) value;
60 + (NSNumber *) numberWithInteger :( NSInteger) value NS_AVAILABLE (10_5, 2_0 );
61 + (NSNumber *) numberWithUnsignedInteger :( NSUInteger) value NS_AVAILABLE (10_5, 2_0 );
62
63 <A class = referer href = "http: // www.2cto.com" target = _ blank minmax_bound = "true"> @ end </A>
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.