How to convert NSString to NSInteger?

Ads

 
 

Share on Google+Share on Google+

Deepak Kumar
How to convert NSString to NSInteger?
1 Answer(s)      6 years and 9 months ago
Posted in : MobileApplications

Hi,

Provide me code to convert NSString into NSInteger.

Thanks

Ads
View Answers

December 21, 2010 at 3:59 PM


Hi,

Use the following code example:

NSString * s= @"100";
NSInteger i = [s intValue];

Thanks


Ads