Last active
July 1, 2017 08:19
-
-
Save khawajafarooq/c05e97710c1359b2da524471449a3bc8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TimerTestViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
Timer.scheduledTimer(timeInterval: interval, target: self, | |
selector: #selector(ViewController.methodToRepeat(timer:)), | |
userInfo: nil, repeats: true) | |
} | |
@objc func methodToRepeat(timer : Timer) { | |
// code here | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment