I cannot find it in the docs, and I wonder if it exists in native Swift. For example, I can call the class level function on NSTimer as follows:
NSTimer.scheduledTimerWithTimeInterval(0.2, target: self, selector: "someSelector:", userInfo: "someData", repeats: true)
But I cannot find a way to do this with my custom objects, so that I can call it like this:
MyCustomObject.someClassLevelFunction("someArg")
Now I know that we can mix Objective-C w / Swift, and it is possible that the NSTimer class NSTimer is the remainder of this compatibility.
Question
swift
Logan Jun 03 '14 at 5:51 on 2014-06-03 05:51
source share