🅰Б
Size: a a a
🅰Б
AB
🅰Б
for lineSubview in pickerView.subviews {
if lineSubview.frame.height < 1 {
lineSubview.backgroundColor = UIColor.white.withAlphaComponent(0.15)
}
}
🅰Б
А
🅰Б
🅰Б
🅰Б
pickerView(_ pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusing view: UIView?)
pickerView.subviews[1].backgroundColor = .green
pickerView.subviews[2].backgroundColor = .red
🅰Б
🅰Б
pickerView(
_ pickerView: UIPickerView, attributedTitleForRow row: Int, forComponent component: Int) -> NSAttributedString? {
for lineSubview
in pickerView.subviews {
if lineSubview.frame.height < 1 {
lineSubview.backgroundColor = UIColor.white.withAlphaComponent(0.4)
}
}
return
nil
}
🅰Б
А
PD
VZ
АС
KD
АС
АС