BRPickerView
BRPickerView copied to clipboard
底部间距问题依然存在,版本号2.7.7

代码
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];
效果
发现问题了,只要设置了alertViewColor就会出现这种情况
如果要设置弹框的背景颜色,设置pickerColor即可。alertViewColor默认等于pickerColor,要保持这两个颜色一致
好的,谢谢