我有 NSMutableArray
,其值为 10、15、26、28。我想将它们作为整数形式存储到另一个数组中,我该如何存储它们。
谢谢:)
最佳答案
这里是如何添加
[array addObject:[NSNumber numberWithInt:10]];
你可以得到像这样的整数值
//assuming array has nsnumber/nsstring objects.
[[array objectAtIndex:index] intValue];
关于iphone - 如何将整数值存储到 iPhone 中的 NSMutableArray,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6491682/