当用户选择类型时,我有单个选择器,它将更新标签,但是当我选择项目时,它等于 null 到标签
//update label type
NSInteger row = [singlePicker selectedRowInComponent:0];
NSString *selected = [pickerData objectAtIndex:row];
NSString *strTypeSelected = [[NSString alloc] initWithFormat:@"%@",selected];
typelabel.text =strTypeSelected;