//整型转换字符串
进行封装
int a=100;
NSNumber*intNumberA=[NSNumber NumberWithInit:a];
//字符串转换成整型
NSString*[email protected]"158";
NSInterger num1=[str1 integerValue];
时间: 2024-12-08 01:11:36
//整型转换字符串
进行封装
int a=100;
NSNumber*intNumberA=[NSNumber NumberWithInit:a];
//字符串转换成整型
NSString*[email protected]"158";
NSInterger num1=[str1 integerValue];