有如下代码,在for语句初始化的xs处得到上述错误。没有在 Xcode 3 中得到它,只是在我今天安装 Xcode 4 时出现。xs 是一个
int xs = 0;
for (xs; xs<3; xs++) {
if ([colorLayoutArray objectAtIndex:xs] == [colorLayoutArray objectAtIndex:xs+1]){
rowCorrectCount = rowCorrectCount +1;}
}
有什么线索吗?