特定列和行的UIPicker字体大小
我正在寻找更改UIPicker中某个列和行的字体大小。 基本上,有太多的文本跑了视图,我想在第二列中的特定行,所以它适合?
谢谢你的帮助。
如果要自定义标签字体大小,请实现名为的代理方法:
-(UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view;
返回一个configuration良好的UILabel
(可以更改font
属性或将adjustsFontSizeToFitWidth
属性设置为YES
)。