Reputation: 123
I have two functions. I want to call first function for example - 60 seconds and than call second function. How to do it with NSTimer? Thanks.
Upvotes: 0
Views: 53
Reputation: 778
try
func firstFunction() {
Timer.scheduledTimer(timeInterval: 60.0, target: self, selector: #selector(secondFunction), userInfo: nil, repeats: false)
}
func secondFunction() {
}
Upvotes: 2