假设有两个 Siwtch 需要互异绑定,用 rac 该怎么写?
UISwitch *switch1;
UISwitch *switch2;
switch1.action = {
    switch2.on = !switch2.on;
}
switch2.action = {
    switch1.on = !switch1.on;
}
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
这样?
找到一种解决方案: