我想显示带有年份的选择器视图,我将年份数组存储在我的 userDC 实体类中,但我在日志消息中收到错误
-(void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component
{
userdc = [years objectAtIndex:row];
NSLog(@"%d",userdc.user_year);
}
我的错误是这样的
-[__NSCFString user_year]: unrecognized selector sent to instance 0xaaa7220