在自定义view方法里 - (UIView )pickerView:(UIPickerView )pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(nullable UIView *)view 方法里添加如下两行代码:
((UIView *)[pickerView.subviews objectAtIndex:1]).backgroundColor = [UIColor clearColor];
((UIView *)[pickerView.subviews objectAtIndex:2]).backgroundColor = [UIColor clearColor];
保存即可~