标签: objective-c
可能重复: How to do string conversions in Objective-C?
如何在Objective-C中将字符串转换为整数?
答案 0 :(得分:4)
int value = [string intValue];
答案 1 :(得分:0)
NSInteger value=[string integerValue];