有人能帮我修复我的代码吗?我试图做一些简单的事情,遍历整个包含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;
}