我是编码新手,我通过观看教程和查看 Google 上发布的论文来自学,我正在关注南伊利诺伊大学的 Seth Whiting 和 Mark Dixon 发布的 iPhone 应用程序论文,我在遵循他们的模型时遇到错误并执行不知道如何解决。错误:一元表达式的参数类型“NSString *”无效
-(NSString*)pickerView:(UIPickerView*)pickerView titleForRow:(NSInteger)rowforComponent: (NSInteger)component{
if (component==clientComponent){
return [clientName objectAtIndex:row];
}
if (component==bxComponent) {
return [problemBx objectAtIndex:row];
}
if (component==antComponent) {
return [anteCedent objectAtIndex:row];
}
if (component==conComponent){
return [conSequence objectAtIndex:row];
}
}