I want to convert string data to NSInteger.
string
data
NSInteger
If the string is a human readable representation of a number, you can do this:
NSInteger myInt = [myString intValue];
2.1m questions
2.1m answers
60 comments
57.0k users