Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let timer = Timer.scheduledTimer(timeInterval: 5.0, target: self, selector: #selector(updateData), userInfo: nil, repeats: true)
- @objc func updateData() {
- print("update data here and then display!")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement