Note that there are some explanatory texts on larger screens.

plurals
  1. POinvert UIDatePicker colors in iOS 7
    primarykey
    data
    text
    <p>I want to start by saying that i would post this question on the Apple Dev Forums but because of the hacking attempt fiasco , or whatever that was, the forum has been offline for almost 2 weeks now and i need a solution for this as soon as possible.</p> <p>In iOS 7 the UIDatePicker looks like this : <img src="https://i.stack.imgur.com/K8udX.png" alt="enter image description here"></p> <p>and a client asked to look like this : <img src="https://i.stack.imgur.com/aFCy9.png" alt="enter image description here"></p> <p>(basically inverted).</p> <p>I've tried a few things:</p> <ol> <li><p>Setting the background to black and looping through all the view's subviews until i reach the labels that show the date itself and change their color to white. The problem is that The view has only one subview, and that subview doesn't have any subviews of it's own. So this solution doesn't work. (it did in ios6).</p></li> <li><p>Applying a <a href="http://developer.apple.com/library/ios/#documentation/GraphicsImaging/Reference/CALayer_class/Introduction/Introduction.html#//apple_ref/doc/uid/TP40004500-CH1-SW51" rel="nofollow noreferrer">filter</a> to the view's CALayer. The thing is that this is only possible on OS X not on iOS, for some unknown reason. </p></li> <li><p>Playing with <a href="http://developer.apple.com/library/ios/#documentation/uikit/reference/UIAppearance_Protocol/Reference/Reference.html" rel="nofollow noreferrer">UIApperance</a> protocol. From what i've read this should work but what i've tried didn't and i don't have extensive experience with this to figure out why not.</p></li> </ol> <p>Any ideas what i can try? Is this even possible? Did i made a mistake in my approach of the problem?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload