📜  swift 5 延迟关闭视图控制器 - Swift 代码示例

📅  最后修改于: 2022-03-11 15:01:03.335000             🧑  作者: Mango

代码示例1
let timer = 1

DispatchQueue.main.asyncAfter(deadline: .now() + timer) {
    // code to execute after 1 second
}