I have 10 buttons on my story board and their current states are hidden.
Based on certain condition I want to display those 10 buttons, but I want to put 1 sec. delay between them
for button in buttons { // there are 10 buttons
button.hidden = false;
button.setBackgroundImage(UIImage(named: "MyImage"), forState: UIControlState.Normal)
// delay 1 sec
}
I guess one way is to use NSTimer but not sure how that will work in the loop? Can someone help me with this?
Thanks Borna