Question : swift setinterval
Answered by : mobile-star
var helloWorldTimer = Timer.scheduledTimer(timeInterval: 60.0, target: self, selector: #selector(ViewController.sayHello), userInfo: nil, repeats: true) @objc func sayHello() { NSLog("hello World") }
Source : | Last Update : Wed, 11 Mar 20