Good afternoon. 09/05/2017
I have the following pickerview:
As you can see immediately the first item of the two lists does not appear the whole name.
I think because of the size.
On the left side the full name is: "BEER OF THE BOA"
On the right side your items are: "BEER OF GOOD 01", "BEER OF GOOD 02"
I wonder if you can change the font size of the pickerview or if you have how the whole description of the items are visible .
I tried to use the code below, but in spite of changing the font color, it does not change the font size.
func pickerView(_ pickerView: UIPickerView, attributedTitleForRow row: Int, forComponent component: Int) -> NSAttributedString?
{// MUDA A COR DAS LINHAS
var myTitle = NSAttributedString();
if component == 0
{
let titleData = vLocal[row] as! Bebida_Class;
myTitle = NSAttributedString(string: titleData.bebida_descricao,
attributes: [NSFontAttributeName:UIFont(name: "Georgia", size: 10.0)!,
NSForegroundColorAttributeName:UIColor.blue])
}
if component == 1
{
etc....
}
return myTitle
}
Thanks in advance for your attention. ps1: If someone edits this post, please DO NOT take away words, because the same ones, including thank you, are to form a whole.