2018-07-23

//UIPickView 的分割线

  • (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view

{

//设置分割线的颜色

for(UIView *singleLine in pickerView.subviews)

{

    if (singleLine.frame.size.height < 1)

    {

        singleLine.backgroundColor = kSingleLineColor;

    }

}

}

你可能感兴趣的:(2018-07-23)