// seconds에 초 만큼 실행지연
DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(1), execute: {
YourCode
})
'swift' 카테고리의 다른 글
View 애니메이션 (1) | 2018.05.18 |
---|---|
swift 버전 확인 (0) | 2018.03.29 |
UITextField password (0) | 2018.03.21 |
UiTextField only english (0) | 2018.03.21 |
UiButton 이벤트 적용 (0) | 2018.03.21 |