UIPickerView存在的bug
1、
- (CGFloat)pickerView:(UIPickerView *)pickerView widthForComponent:(NSInteger)component __TVOS_PROHIBITED;
会导致component之间有间隙
2、
- (CGFloat)pickerView:(UIPickerView *)pickerView widthForComponent:(NSInteger)component __TVOS_PROHIBITED;
不添加这句代理,component之间不会有间隙(怀疑是我的),但是component无法完全填充
Pickerview.
怀疑是下面的代理设置的view的宽度,占据了间隙。还没找到系统填充间隙的方法
- (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(nullable UIView *)view __TVOS_PROHIBITED;
网友评论