Profile

성빈이의 기록장

성빈이

[Swift] 지연 실행

728x90
DispatchQueue.main.asyncAfter(deadline: .now() + n) {
	// todo
}

n에 지연할 시간(초 단위)를 넣어주면 된다.