调用函数一段时间然后调用另一个函数 - NSTimer

Call function for some time and than call another function - NSTimer

我有两个功能。例如,我想调用第一个函数 - 60 秒,而不是调用第二个函数。如何用 NSTimer 做到这一点?谢谢。

尝试

func firstFunction() {

    Timer.scheduledTimer(timeInterval: 60.0, target: self, selector: #selector(secondFunction), userInfo: nil, repeats: false)
}
func secondFunction() {

}