PGDatePicker icon indicating copy to clipboard operation
PGDatePicker copied to clipboard

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

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

我在创建PGDatePicker时,设置了calendar和timeZone,但是在PGDatePicker+Common类的daysWithMonthInThisYear:withMonth:方法中,创建formatter后并未将calendar和timeZone设置进去。 - (NSInteger)daysWithMonthInThisYear:(NSInteger)year withMonth:(NSInteger)month { NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDateFormat:@"yyyy-MM"]; NSString *dateStr = [NSString stringWithFormat:@"%ld-%ld",year,month]; NSDate *date = [formatter dateFromString:dateStr]; NSCalendar *calendar = [[NSCalendar alloc]initWithCalendarIdentifier: NSCalendarIdentifierGregorian]; NSRange...

/** 出现的原因: 年月日 list用了懒加载。。。, 看了看源码,作者写的不讲究~~~ 作者大哥fix一下吧 */

![WeChat43ca067271ac747b6871f46208532289](https://user-images.githubusercontent.com/15975478/66376646-b4666180-e9e2-11e9-94ef-2b3688f61679.png) ![WeChata184b39f1374139d7e020a03953d2bdb](https://user-images.githubusercontent.com/15975478/66376647-b4fef800-e9e2-11e9-9dc9-510c5d6fa0ca.png) 这两个地方是不是不对,我现在拿到的年份总是当前年份 如果不去手动更改selectedComponents的话

可不可以记住上次选中的日期

分析: 设置 `取消` `确定`按钮文案的方法有两处: 1. 在 `setLanguage:` 方法中 ``` - (void)setLanguage:(NSString *)language { _language = language; NSString *cancelButtonText = [NSBundle pg_localizedStringForKey:@"cancelButtonText" language:self.language]; [self.cancelButton setTitle:cancelButtonText forState:UIControlStateNormal]; NSString *confirmButtonText = [NSBundle pg_localizedStringForKey:@"confirmButtonText"...

希望有时间能添加新的时间格式: 2列数据; 第一列为上午/下午, 第二列为01-12小时数, 并且第二列小时数可以循环显示, 当滚动第二列时, 切换上午下午(ps:类似iOS 系统添加闹钟的格式, 只不过没有分钟数据)