PGDatePicker icon indicating copy to clipboard operation
PGDatePicker copied to clipboard

日期选择器,支持年、年月、年月日、年月日时、年月日时分、年月日时分秒、月日、月日时、月日时分、月日时分秒、时、时分、时分秒、分秒、月日周 时分等

Results 56 PGDatePicker issues
Sort by recently updated
recently updated
newest added

你好, 这个方法能优化一下吗? 就像issues 中已经提到的 BOOL isLeapYear = false; if((year % 400 == 0) || ((year % 4 == 0) && (year % 100 != 0))){ isLeapYear = true ; }...

private lazy var datePicker = { () -> PGDatePicker in let picker = PGDatePicker(frame: CGRect(x: 0, y: 0, width: Constant.screenWidth, height: 150)) picker.rowHeight = 44 picker.minimumDate = Calendar.current.date(byAdding: .year, value:...

能否加上按周选择?我记得之前的版本是有按周选择的 不知道为啥现在没有了

问题描述及步骤: 1.在 PGDatePicker-2.6.9 的 demo 年月日的代码中设置最小日期 NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init]; dateFormatter.dateFormat = @"yyyy-MM-dd"; datePicker.minimumDate = [dateFormatter dateFromString: @"2021-03-31"]; 2.日期选择器中仅滑动月份选择3月份,然后点击确定,查看打印出的日期月份是3月份,天数还是今天的,不是31

用月日周时分的时候 打印的Weekday 总会大一天 (比如 选的周四 会打印一个5)

` DispatchQueue.main.async { self?.present(pickerManager!, animated: false, completion: nil) } ` 大概延迟1s