gpt4 book ai didi

ios - 获取 Alpha 值 Objective-C

转载 作者:行者123 更新时间:2023-11-29 13:33:01 26 4
gpt4 key购买 nike

如何获取 NSBox 的 alpha 值并在 if 语句中使用它?

如果值等于 0,我想检查 NSBox 的 alpha,然后做一些事情。

if ([Preferences alphaValue ==0]) {
[[[[Preferences subviews] objectAtIndex:0] animator] setAlphaValue:0.0];

} else {
[[[[Preferences subviews] objectAtIndex:0] animator] setAlphaValue:1];

}
}

最佳答案

你要吗

if ([Preferences alphaValue] == 1.0)

还是什么?

你需要更清楚地解释你想做什么。

关于ios - 获取 Alpha 值 Objective-C,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11372430/

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