I\'m trying to create an NSTimer in Swift but I\'m having some trouble.
NSTimer
Swift
NSTimer(timeInterval: 1, target: self, selector: test(), us
Change as a simple string naming in the method calling for selector syntax
var timer1 : NSTimer? = nil timer1= NSTimer(timeInterval: 0.1, target: self, selector: Selector("test"), userInfo: nil, repeats: true)
After that, type func test().