How can I set a green color in UIDatePicker
's selected row. I had searched and put some kind of code like below,
The first one is:
UILabel *label = [UILabel appearanceWhenContainedIn:[UITableView class],[UIDatePicker class], nil];
label.font = HELVETICA_NEUE(24);
label.textColor = GREEN_COLOR;
Here, the green color is only set on the date and month, but not the year. And the other non-selected dates in the picker should still show up black.
I just want the selected row to be green.
Next, I followed the Aron post in below link:
can I change the font color of the datePicker in iOS7?
Then I create the UILabel
+ UIDatePickerLabel
class file in my project.
ALL the dates in the UIDatePicker
showed up green, and I need only the selected row to be green. Does anyone know how to do this?