Is it possible to modify the tint color of a UIDatePicker
's selection indicator? Or can it be removed so I can add my own selection indicator image?
I know in the case of UIPickerView
´s you can disable the selection indicator so that you can provide your own selection indicator image.
Here is what I did with my UIDatePicker that was placed inside a UITableViewCell and sized purely using autolayout constraints. (I recommend subclassing the UIDatePicker).
Tested to work on iPhone 6 and iPhone 6+.
There is no option to change the color of selection indicator by default. You can make a workaround though. I would add a simple
UIView
with a color of your choice and alpha value for transparency. Se the size and coordinates accordingly to the original selection indicator to overlay it (size 280x44, coordinates 20/130 for standard picker - not sure about that so find out the right values in case these don't match).Hope it's something you can start with.