More than 1 year has passed since last update.

Swiftではちょいちょい書式が変わったりするのでメモ。

let delay = 3.0 * Double(NSEC_PER_SEC)
let time  = dispatch_time(DISPATCH_TIME_NOW, Int64(delay))
dispatch_after(time, dispatch_get_main_queue(), {
    println("dispatch after!")
})