for button in buttonGroup {
UIView.animateWithDuration(1, animations: {
button.alpha = 0
})
}
VS
UIView.animateWithDuration(1, animations: {
for button in buttonGroup {
button.alpha = 0
}
})
I have more than 40 buttons in buttonGroup, maybe later, I wonder which way is better? The standard is resource consumption.
source
share