I was able to change my font color but I also need to change font size, how can I accomplish that? Here\'s my code for chaning the color,
- (NSAttributedStr
Thanks for @Richard Bown
Would this be a better answer for Swift?
func pickerView(pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusingView view: UIView?) -> UIView {
if let titleLabel = view as? UILabel {
titleLabel.text = "Your Text"
return titleLabel
} else {
let titleLabel = UILabel()
titleLabel.font = UIFont.boldSystemFontOfSize(16)//Font you want here
titleLabel.textAlignment = NSTextAlignment.Center
titleLabel.text = "Your Text"
return titleLabel
}
}