Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以减少或更改 UIPickerView 项目的字体?
在选择器的委托中实现pickerView:viewForRow:forComponent:reusingView:方法,而不是pickerView:titleForRow:forComponent:. 您将能够在那里创建 UILabel 对象并为其设置所有必要的属性。
pickerView:viewForRow:forComponent:reusingView:
pickerView:titleForRow:forComponent: