Commit 2af6be11 authored by David黄金龙's avatar David黄金龙

Merge branch 'youhua-dev' of http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS into youhua-dev

* 'youhua-dev' of http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS:
  时间选择器选择背景色 抄袭金龙
parents 4593e8a3 5c89a184
...@@ -323,6 +323,9 @@ extension YHDatePickView: UIPickerViewDelegate,UIPickerViewDataSource { ...@@ -323,6 +323,9 @@ extension YHDatePickView: UIPickerViewDelegate,UIPickerViewDataSource {
} }
func pickerView(_ pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -> String? { func pickerView(_ pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -> String? {
if #available(iOS 14.0, *), pickerView.subviews.count > 1 {
pickerView.subviews[1].backgroundColor = UIColor.brandMainColor6
}
if component == 0 { if component == 0 {
return "\((currentDateCom.year!) + row - 99)" return "\((currentDateCom.year!) + row - 99)"
} else if component == 1 { } else if component == 1 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment