Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 如何在 Objective-C 中进行字符串转换?
如何在 Objective-C 中将字符串转换为整数?
int value = [string intValue];
NSInteger value=[string integerValue];