BRPickerView icon indicating copy to clipboard operation
BRPickerView copied to clipboard

底部间距问题依然存在,版本号2.7.7

Open CocoaJerry opened this issue 2 years ago • 4 comments

image

CocoaJerry avatar Jun 14 '22 13:06 CocoaJerry

代码

BRDatePickerView *datePickerView = [[BRDatePickerView alloc]init];
datePickerView.pickerMode = BRDatePickerModeYMD;
datePickerView.title = @"年月日";
datePickerView.isAutoSelect = YES;
datePickerView.maxDate = [NSDate date];
datePickerView.resultBlock = ^(NSDate *selectDate, NSString *selectValue) {
    
};

// 自定义弹框样式
BRPickerStyle *customStyle = [[BRPickerStyle alloc]init];
// customStyle.alertViewColor = [UIColor clearColor]; // 不需要设置alertViewColor的颜色
customStyle.topCornerRadius = 16.0f;
customStyle.doneTextColor = [UIColor blueColor];
customStyle.selectRowTextColor = [UIColor blueColor];
datePickerView.pickerStyle = customStyle;

[datePickerView show];

效果

image

agiapp avatar Jun 16 '22 10:06 agiapp

发现问题了,只要设置了alertViewColor就会出现这种情况

CocoaJerry avatar Jun 16 '22 10:06 CocoaJerry

如果要设置弹框的背景颜色,设置pickerColor即可。alertViewColor默认等于pickerColor,要保持这两个颜色一致

agiapp avatar Jun 16 '22 10:06 agiapp

好的,谢谢

CocoaJerry avatar Jun 16 '22 10:06 CocoaJerry