Swift:NSTimer scheduledTimerWithTimeInterval

From Hawk Wiki
Jump to: navigation, search

Using NSTimer for repeat timer or one time timeout event

NSTimer.scheduledTimerWithTimeInterval(previewBlackDuration, target: self, selector: "functionName", userInfo: nil, repeats: false)