diff --git a/BRPickerView.podspec b/BRPickerView.podspec index 6a29e5a..d308716 100755 --- a/BRPickerView.podspec +++ b/BRPickerView.podspec @@ -2,7 +2,7 @@ Pod::Spec.new do |s| # 框架的名称 s.name = "BRPickerView" # 框架的版本号 - s.version = "2.7.0" + s.version = "2.7.2" # 框架的简单介绍 s.summary = "A custom picker view for iOS." # 框架的详细描述(详细介绍,要比简介长) diff --git a/BRPickerViewDemo/Classes/Demo/Controller/TestViewController.m b/BRPickerViewDemo/Classes/Demo/Controller/TestViewController.m index 3afa3cb..8611b18 100755 --- a/BRPickerViewDemo/Classes/Demo/Controller/TestViewController.m +++ b/BRPickerViewDemo/Classes/Demo/Controller/TestViewController.m @@ -333,7 +333,7 @@ - (void)handlerTextFieldSelect:(UITextField *)textField { yearLabel.textColor = [[UIColor lightGrayColor] colorWithAlphaComponent:0.2f]; yearLabel.font = [UIFont boldSystemFontOfSize:100.0f]; NSString *yearString = self.birthdaySelectDate ? @(self.birthdaySelectDate.br_year).stringValue : @([NSDate date].br_year).stringValue; - if (self.infoModel.birthdayStr && [self.infoModel.birthdayStr isEqualToString:@"自定义"]) { + if (self.infoModel.birthdayStr && [self.infoModel.birthdayStr containsString:@"自定义"]) { yearString = @""; } yearLabel.text = yearString; diff --git a/README.md b/README.md index a2e7be7..c5e2e81 100755 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ BRPickerView 封装的是iOS中常用的选择器组件,主要包括:日期 【说明】 -- 当前最新版本为: `2.7.0` 。 +- 当前最新版本为: `2.7.2` 。 - 如果不能找到最新版本,请先执行一下 `pod repo update` 更新本地仓库,待更新完成后;再执行 `pod search BRPickerView` 进行搜索,就会看到最新版本。 # 效果演示 @@ -303,6 +303,11 @@ stringPickerView.pickerStyle = customStyle; # 更新记录 +#### 2020-09-23(V2.7.2) + +- 日期选择器新增添加自定义字符串属性:`firstRowContent` 和 `lastRowContent` +- 解决日期选择器设置最小日期时,存在的联动不正确的问题:[#184](https://github.com/91renb/BRPickerView/issues/184) + #### 2020-08-28(V2.7.0) - 日期选择器添加 `nonSelectableDates` 属性:[#178](https://github.com/91renb/BRPickerView/issues/178)