I have array with int values:
var array = [1,82,17,29,74,94,76,97,48,78,88,20,31]
And action:
@IBAction func action(_ sender: Any) {
print("i")
}
I want to my action to be called for values in array.
For example: first time action calls after 1 seconds, next time after 82 seconds, and next after 17 seconds. And etc...
How to do it?