Convert a NSString to an int
To convert a NSString to an int, call the method integerValue on the NSString class. Below is an example:
NSString *str = @"123";Convert a NSString to a long
int value = [str integerValue];
To convert a NSString to a long, call the method longLongValue on the NSString class. Below is an example:
NSString *str = @"123";
long value = [str longLongValue];
Convert a NSString to a float
To convert a NSString to a float, call the method floatValue on the NSString class. Below is an example:
NSString *str = @"123.4";
float value = [str floatValue];
Convert a NSString to a double
To convert a NSString to a double, call the method doubleValue on the NSString class. Below is an example:
NSString *str = @"123.4";
double value = [str doubleValue];
Read More >>


Pushpins Inc., the developers of the leading grocery shopping app, Pushpins, has created SimpleUPC, an application enabling mobile app developers to gain access to product information. Pushpins created the app through a partnership with Kwikee, a MultiAd product providing manufacturer-approved grocery and consumer packaged goods (CPG) images, data and related content.












