我想转换string data to NSInteger.
string
data
NSInteger
如果字符串是人类可读的数字表示,您可以这样做:
NSInteger myInt = [myString intValue];