I tried var timer = NSTimer() timer(timeInterval: 0.01, target: self, selector: update, userInfo: nil, repeats: false) But, I got an error saying '(timeInterval: $T1, target: ViewController, selector: () ->...
  • May 19, 2022
  • 0 Comments
Locked. This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions. How do I...
  • May 12, 2022
  • 0 Comments
I’m trying to create an NSTimer in Swift but I’m having some trouble. NSTimer(timeInterval: 1, target: self, selector: test(), userInfo: nil, repeats: true) test() is a function in the...
  • April 28, 2022
  • 0 Comments