TIL

init(fireAt date: Date, interval ti: TimeInterval, target t: Any, selector s: Selector, userInfo ui: Any?, repeats rep: Bool)

这里的date是第一次时间,也就是说你用了一个早于现在的时间,则会立即fire一次。

The date here is the “timer should first fire”, so if you setup a date earlier than now, timer would immediately fire once.

Arthur Wang 的泡面番

A programmer. I have a serious blog here -> http://artori.us

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store