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









Related Tutorials/Questions & Answers:
How to convert NSString to NSInteger?
nsstring to nsinteger
Advertisements
NSString uppercaseString
How to Convert NSStringe into Uppercasestring iPhone
NSString into the UILabel
NSString initWithFormat
nsstring compare
NSString to double
NSData to NSString
NSTimeInterval to NSString
NSString to double
nsstring load from file
NSString to float conversion
Why NSString Objective C
NSString to float conversion
Covert Bool to String - NSString
nsstring encoding types
How to convert into to String in Java?
How to Convert ArrayList to Array?
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 lowercasestring
Converting a NSString into NSDate
How to convert XML file to database ?
How to convert string to byte in Java
nsstring get value - algebra multiplication problems
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
how to convert yyyyMMdd to date in python
how to convert yyyyMMdd to date in python
how to convert json into dataframe in scala
How to convert Collection to Array in Java?
How ro convert char into string??
How to Convert array to list in Java
How to convert String to int in Java
How to convert String to int in Java
How to convert String to int in Java
How to convert String to int in Java
How to convert date to string in Java?
How to convert date to time in PHP?

Ads