- //定义四个整数类型
- int a = 789;
- int b = 456;
- int c = 123;
- int d = 753;
- //进行封装
- NSNumber *intNumberA = [NSNumber numberWithInt:a];
- NSNumber *intNumberB = [NSNumber numberWithInt:b];
- NSNumber *intNumberC = [NSNumber numberWithInt:c];
- NSNumber *intNumberD = [NSNumber numberWithInt:d];
12,输出如下、转换完之后就是对象输出的格式了、
nslog(@“%@”,A);