有人能帮我修复我的代码吗?我正在尝试做一些简单的事情,迭代包含NSString的整个数组,将它们转换为NSIntegers,并将它们赋给一个NSInteger变量。
for (NSInteger *itemF in myNSArray) {
//WHERE "slotA" is an NSInteger and "itemF" is stored as an NSString and I wanna conver to NSInteger
//and store is in the var.
slotA=itemF;
} 发布于 2010-07-06 08:54:16
for (NSString *string in array)
{
NSInteger integer = [string integerValue];
}https://stackoverflow.com/questions/3182898
复制相似问题