How do I remove the opacity from UIPickerView on the unselected rows

635 Views Asked by At

I'm trying to remove the opacity from the pickerview as part of my slot machine project. I'm trying to make the rows on the pickerview to have the same look like the selected row. I looked all over but could not find something about that. I tried several things like:

pickerView.backgroundColor = UIColor.blueColor().colorWithAlphaComponent(0)

and any other things like that.. Any Help?

1

There are 1 best solutions below

0
hooma7n On

UIColor Picker has an option with name supportsAlpha as Bool value, You can easily set it to false.

pickerView.supportsAlpha = false