Xcode在我的代码中抱怨第二个else if
语句的“Expected expression required”。我曾尝试使用从我在这里看过的代码中使用括号,但那不起作用,并且不确定它现在想要什么表达式?正常工作,直到我添加第二个else if
我意识到这可能是基本的目标C的东西,但如果语句已经从来没有做过的了两个多项目即时通讯有点坚持if else语句的预期表达式错误
-(NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component
{
if ([text1 isFirstResponder])return arrStatus.count;
else
if ([text2 isFirstResponder]);return arrStatus2.count;
else ///<<<<< wants an expected expression here
if ([text3 isFirstResponder]);return arrStatus2.count;
}
谢谢,下次注意到。那让我沮丧地把我的苹果机丢在地板上! – JSA986 2012-07-31 12:27:17
@ JSA986是的,不要那样做! Waaaay太昂贵了,无法替换... – trojanfoe 2012-07-31 12:27:57