如何在Objective-C中将字符串转换为整数?

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];


1
NSInteger value=[string integerValue];