开发者

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

开发者 https://www.devze.com 2023-01-01 02:10 出处:网络
H开发者_如何学JAVAow do I detect what color is under the InfoButton... so I can change the button

H开发者_如何学JAVAow 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消