我对编码很陌生,并且我当前的秒表方法有错误
for (int i = [timeArray count] -1; i >= 0; i-) { <== error here - Expected expression
int timeComponent = [[timeArray objectAtIndex:i] intValue];
switch (i) {
case 3:
hours = timeComponent;
break;
case 2:
minutes = timeComponent;
break;
case 1:
seconds = timeComponent;
break;
case 0:
hundredths = timeComponent;
hundredths++;
break;
default:
break;
}
}
我已经阅读了关于不正确使用减号的信息,但这似乎并没有解决它