且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

UIPickerView字体

更新时间:2023-02-02 13:46:34

有可能的。要做到这一点,你需要实现 pickerView:viewForRow:forComponent:reusingView:方法在选择器的委托 - 创建 UILabel 并使用您想要的任何属性进行设置。

Yes, it is possible. To do that you need to implement pickerView:viewForRow:forComponent:reusingView: method in picker's delegate - create UILabel instance there and setup it with whatever attributes you want.