Ind.ie is now Small Technology Foundation.
Commit 39046496 authored by Aral Balkan's avatar Aral Balkan

Updated to Swift 2.2 syntax (#selector). Closes #1.

parent eecf347f
......@@ -41,7 +41,7 @@ public class Timer
public func start(repeats repeats: Bool = true) -> Timer
{
timer = NSTimer.scheduledTimerWithTimeInterval(tickInterval, target: self, selector: Selector("tick"), userInfo: nil, repeats: repeats)
timer = NSTimer.scheduledTimerWithTimeInterval(tickInterval, target: self, selector: #selector(self.tick), userInfo: nil, repeats: repeats)
return self
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment