diff --git a/BAPickView.podspec b/BAPickView.podspec index d00d3ec..4f33ddf 100644 --- a/BAPickView.podspec +++ b/BAPickView.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "BAPickView" - s.version = "1.1.4" + s.version = "1.1.5" s.summary = '目前为止,最为精简的 自定义 pickView 和 日期选择器 封装!' s.homepage = 'https://github.com/BAHome/BAPickView' s.license = 'MIT' diff --git a/BAPickView/BAPickView/BAKit_PickerView.m b/BAPickView/BAPickView/BAKit_PickerView.m index bb0b349..799047c 100644 --- a/BAPickView/BAPickView/BAKit_PickerView.m +++ b/BAPickView/BAPickView/BAKit_PickerView.m @@ -1203,8 +1203,8 @@ - (UIPickerView *)pickView { if (!_pickView) { - _pickView = [UIPickerView new]; - + //小于等于9.3以下的系统初始化要给宽度,不然会出现UIPickerView宽度错误的BUG + _pickView = [[UIPickerView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, kBAKit_PickerView_H)]; [self.bgView addSubview:self.pickView]; } return _pickView;