agiapp/BRPickerView

行高比较大的时候,selectRowTextColor除了最后一行设置成功,其他行没有没有效果。

amycliny opened this issue · 2 comments

在demo上试过了,只有“其他”选中的时候为白色(也就是最后一行),代码如下,rowHeight <= 70没有问题,是我漏掉了什么吗?

// 性别
BRStringPickerView *stringPickerView = [[BRStringPickerView alloc]init];
stringPickerView.pickerMode = BRStringPickerComponentSingle;
// stringPickerView.title = @"请选择性别";
stringPickerView.dataSourceArr = @[@"男", @"女", @"其他"];
stringPickerView.selectIndex = self.genderSelectIndex ;
stringPickerView.resultModelBlock = ^(BRResultModel *resultModel) {
self.genderSelectIndex = resultModel.index;
self.infoModel.genderStr = resultModel.value;
textField.text = resultModel.value;
};

        BRPickerStyle *customStyle = [[BRPickerStyle alloc]init];
                         customStyle.selectRowTextFont = [UIFont systemFontOfSize:33];
                         customStyle.pickerTextFont = [UIFont systemFontOfSize:33];
                         customStyle.selectRowTextColor = UIColor.whiteColor;
                         customStyle.pickerTextColor = [UIColor colorWithWhite:0xffffff alpha:0.4];
                         customStyle.separatorColor = UIColor.blackColor;
                         customStyle.rowHeight = 78;
                         customStyle.pickerColor = UIColor.grayColor;
                         stringPickerView.pickerStyle = customStyle;
                  
        [stringPickerView show];

补两张图:
wrong@2x
correct@2x

测了一下rowHeight大于70时是有问题,这个问题已解决,晚上会统一升级更新