Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
amycliny opened this issue Aug 23, 2020 · 2 comments

Comments

@amycliny
Copy link

amycliny commented Aug 23, 2020

在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];
@amycliny
Copy link
Author

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

@agiapp
Copy link
Owner

agiapp commented Aug 26, 2020

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

@agiapp agiapp closed this as completed in f93c4aa Aug 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants