// 起動 scheduler = NSTimer.scheduledTimerWithTimeInterval(1, target: self, selector: #selector(ViewController.updateTimer), userInfo: nil, repeats: true) // 停止 scheduler?.invalidate()
scheduledTimerWithTimeInterval
の第一引数で呼び出す間隔を指定
// 起動 scheduler = NSTimer.scheduledTimerWithTimeInterval(1, target: self, selector: #selector(ViewController.updateTimer), userInfo: nil, repeats: true) // 停止 scheduler?.invalidate()
scheduledTimerWithTimeInterval
の第一引数で呼び出す間隔を指定