Skip to content

Commit f93c4aa

Browse files
committed
fix #177
1 parent f7ae017 commit f93c4aa

File tree

3 files changed

+0
-36
lines changed

3 files changed

+0
-36
lines changed

BRPickerView/AddressPickerView/BRAddressPickerView.m

-12
Original file line numberDiff line numberDiff line change
@@ -364,18 +364,6 @@ - (void)setPickerSelectRowStyle:(UIPickerView *)pickerView titleForRow:(NSIntege
364364
if (self.pickerStyle.selectRowTextFont) {
365365
selectLabel.font = self.pickerStyle.selectRowTextFont;
366366
}
367-
// 上一个选中的 label
368-
UILabel *lastLabel = (UILabel *)[pickerView viewForRow:row - 1 forComponent:component];
369-
if (lastLabel) {
370-
lastLabel.textColor = self.pickerStyle.pickerTextColor;
371-
lastLabel.font = self.pickerStyle.pickerTextFont;
372-
}
373-
// 下一个选中的 label
374-
UILabel *nextLabel = (UILabel*)[pickerView viewForRow:row + 1 forComponent:component];
375-
if (nextLabel) {
376-
nextLabel.textColor = self.pickerStyle.pickerTextColor;
377-
nextLabel.font = self.pickerStyle.pickerTextFont;
378-
}
379367
}
380368
});
381369
}

BRPickerView/DatePickerView/BRDatePickerView+BR.m

-12
Original file line numberDiff line numberDiff line change
@@ -463,18 +463,6 @@ - (void)setupPickerSelectRowStyle:(UIPickerView *)pickerView titleForRow:(NSInte
463463
if (self.pickerStyle.selectRowTextFont) {
464464
selectLabel.font = self.pickerStyle.selectRowTextFont;
465465
}
466-
// 上一个选中的 label
467-
UILabel *lastLabel = (UILabel *)[pickerView viewForRow:row - 1 forComponent:component];
468-
if (lastLabel) {
469-
lastLabel.textColor = self.pickerStyle.pickerTextColor;
470-
lastLabel.font = self.pickerStyle.pickerTextFont;
471-
}
472-
// 下一个选中的 label
473-
UILabel *nextLabel = (UILabel*)[pickerView viewForRow:row + 1 forComponent:component];
474-
if (nextLabel) {
475-
nextLabel.textColor = self.pickerStyle.pickerTextColor;
476-
nextLabel.font = self.pickerStyle.pickerTextFont;
477-
}
478466
}
479467
});
480468
}

BRPickerView/StringPickerView/BRStringPickerView.m

-12
Original file line numberDiff line numberDiff line change
@@ -376,18 +376,6 @@ - (void)setPickerSelectRowStyle:(UIPickerView *)pickerView titleForRow:(NSIntege
376376
if (self.pickerStyle.selectRowTextFont) {
377377
selectLabel.font = self.pickerStyle.selectRowTextFont;
378378
}
379-
// 上一个选中的 label
380-
UILabel *lastLabel = (UILabel *)[pickerView viewForRow:row - 1 forComponent:component];
381-
if (lastLabel) {
382-
lastLabel.textColor = self.pickerStyle.pickerTextColor;
383-
lastLabel.font = self.pickerStyle.pickerTextFont;
384-
}
385-
// 下一个选中的 label
386-
UILabel *nextLabel = (UILabel*)[pickerView viewForRow:row + 1 forComponent:component];
387-
if (nextLabel) {
388-
nextLabel.textColor = self.pickerStyle.pickerTextColor;
389-
nextLabel.font = self.pickerStyle.pickerTextFont;
390-
}
391379
}
392380
});
393381
}

0 commit comments

Comments
 (0)