From 29ca792f9cd6216f5618cf8706d35a51b57b1376 Mon Sep 17 00:00:00 2001 From: 无故事王国 <841720330@qq.com> Date: 星期一, 23 十月 2023 17:37:24 +0800 Subject: [PATCH] 修复BUG --- WanPai/Root/Other/View/CommonDatePickerView.swift | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/WanPai/Root/Other/View/CommonDatePickerView.swift b/WanPai/Root/Other/View/CommonDatePickerView.swift index a0c7d33..5ae3abf 100644 --- a/WanPai/Root/Other/View/CommonDatePickerView.swift +++ b/WanPai/Root/Other/View/CommonDatePickerView.swift @@ -20,7 +20,7 @@ private var type:DatePickerType! private var years = [Int]() - private var months = [1,2,3,4,5,6,7,8,9,10,11,12] + private var months = [12,11,10,9,8,7,6,5,4,3,2,1] private var hours = [Int]() private var minutes = [Int]() private var days = [Int]() @@ -149,7 +149,6 @@ extension CommonDatePickerView:UIPickerViewDataSource{ func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int { - if component == 0{ switch type{ -- Gitblit v1.7.1