简体   繁体   中英

Make an iPhone InfoButton light/dark based on color behind it

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?)

but how do I tell if it's "kind of light" or "kind of dark"?

Um, look at it?

Shouldn't Apple have some kind of a simple "cmdButton.doThisExtremelyCommonThingForMe = TRUE" statement?

Yeah, that would be great. But only if they'd also supply a cmdButton.doThisOtherExtremelyCommonThingForMeToo.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM