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!")
})
Go to list of users who liked
More than 5 years have 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!")
})
Register as a new user and use Qiita more conveniently
Go to list of users who liked