更改uipickerview标题文字中的字体样式。 我想更改只选择标题行的字体样式是粗体,其他标题文字是正常字体。我希望字体样式的标题字体样式是Helvetica Neue Bold。
答案 0 :(得分:0)
- (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view
{
if(row == yourSelectedIndex)//to set as bold
{
UILabel* tView = (UILabel*)view;
if (!tView)
{
tView = [[UILabel alloc] init];
[tView setFont:[UIFont boldFontWithSize:14"]];
}
tView.text=@"your text values";
return tView;
}
}