How can I convert a string to an integer in Objective-C?
Possible Duplicate:
How to do string conversions in Objective-C?
如何在Objective-C中将字符串转换为整数?
1
| int value = [string intValue]; |
-
这是我试图转换pressure = pressureIN;我试图将pressureIN转换为压力这是一个int值的字符串值
1
| NSInteger value=[string integerValue]; |