Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIPickerView as inputView always shows gray background on iOS 7

I've got a UIPickerView as the inputView of a UITextField and can successfully set the background on iOS 8:

statePicker.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.25f];

But on iOS 7, I'll be damned if every single thing I've tried from other answers just results in this:

statepicker

Thoughts?

like image 606
Timothy Avatar asked Oct 19 '22 14:10

Timothy


1 Answers

Verify your UITextField does not have his Appearance value set to Dark in the attributes inspector, just below the Keyboard Type setting. If so set it back to Default.

like image 192
Akabab Avatar answered Nov 04 '22 21:11

Akabab