有人可以帮我在这里修复我的代码。我正在尝试做一些简单的迭代,遍历其中包含 NSString 的整个数组,将它们转换为 NSInteger 并将它们分配给 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;
}