相关疑难解决方法(0)

UIPickerView不允许通过委托的`attributionTitleForRow ...`更改字体名称和大小

我使用以下函数来更改字体颜色和字体大小,颜色有效,但字体名称和字体大小拒绝工作.

func pickerView(pickerView: UIPickerView, attributedTitleForRow row: Int, forComponent component: Int) -> NSAttributedString? 

var myTitle = NSAttributedString(string: titleData, attributes: [NSFontAttributeName:UIFont(name: "Arial-BoldMT", size: 45)!, NSForegroundColorAttributeName:UIColor.whiteColor()])
Run Code Online (Sandbox Code Playgroud)

任何帮助?

谢谢.

size fonts cocoa uipickerview nsattributedstring

25
推荐指数
2
解决办法
2万
查看次数

标签 统计

cocoa ×1

fonts ×1

nsattributedstring ×1

size ×1

uipickerview ×1