How to convert NSString to NSInteger?

How to convert NSString to NSInteger?

Hi,

Provide me code to convert NSString into NSInteger.

Thanks

View Answers

December 21, 2010 at 3:59 PM

Hi,

Use the following code example:

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

Thanks

Ads









Related Tutorials/Questions & Answers:
How to convert NSString to NSInteger?
nsstring to nsinteger
Advertisements
How to Convert NSStringe into Uppercasestring iPhone
NSString into the UILabel
NSString to double
nsstring compare
NSString to double
nsstring load from file
NSString to float conversion
Why NSString Objective C
NSString to float conversion
How to convert into to String in Java?
How to Convert ArrayList to Array?
Covert Bool to String - NSString
how to convert ACSII to HEX
How to Convert String to Date?
How to convert a String to an int?
How to convert String into java.util.Date
how to convert jsp to exe
how to convert sql into hql
HOW TO CONVERT THIS CODE INTO GUI
nsstring encoding types
How to convert XML file to database ?
How to convert string to byte in Java
how to convert string to image in java
How to convert a swing form to PDF
How to convert eclipse project to Maven
how to convert string to double in java
how to convert string to double in java
how to convert string to double in java
how to convert string to double in java

Ads