gpt4 book ai didi

ios - 如何根据背景图像颜色更改 UILabel 文本颜色?

转载 作者:可可西里 更新时间:2023-11-01 06:09:37 25 4
gpt4 key购买 nike

<分区>

我想根据背景图像颜色更改标签文本颜色。背景图像位于 UIScrollView 上,UILabel 位于其之上。当 ScrollView 滚动时,标签颜色应根据背景图像颜色进行更改。

基本上,如果标签在图片的黄色部分,它就是黑色,如果它在图片的蓝色部分,它就是白色。

见下图:

if the label was on the yellow part of the image, it would be black, and if it was on the blue part of the image, it would be white

提前致谢...

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com