我for loop一整天都在试图避免,但我再也做不到了。伙计们,我该怎么做:我有 9 个UIButtons叫 : imageCallerButton1,imageCallerButton2有imageCallerButton3,etc没有办法使用 for 循环而不是添加 18 行来更改半径?
for (int i =9; i<=9; ++i) {
imageCallerButton1.layer.cornerRadius = 10;
imageCallerButton1.clipsToBounds = YES;
}