Make an iPhone InfoButton light/dark based on color behind it
Posted
by Paula
on Stack Overflow
See other posts from Stack Overflow
or by Paula
Published on 2010-05-27T16:54:25Z
Indexed on
2010/05/27
18:01 UTC
Read the original article
Hit count: 449
How do I detect what color is under the InfoButton... so I can change the button from DARK to LIGHT?
I set my view's color... but how do I tell if it's "kind of light" or "kind of dark"?
Besides... I can't change the info-button from light to dark anyway. (read only)
Ugh.
Shouldn't Apple have some kind of a simple "cmdButton.doThisExtremelyCommonThingForMe = TRUE" statement?
InfoButtons are useless if you can't even see them.
(Or how would I put an image behind the button to make it stand-out more?)
© Stack Overflow or respective owner