
간단한 Swift Delay방법입니다.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
perform(#selector(delayedFunc), with: nil, afterDelay: 3) | |
print("after") | |
@IBAction func delayedFunc() { | |
print("delayedFunc") | |
} |
'IOS(Swift)' 카테고리의 다른 글
IOS navigationItem title (0) | 2021.02.28 |
---|---|
Swift loading bar (0) | 2021.02.16 |
swift var let optional (0) | 2021.02.01 |
IOS unwind (0) | 2021.01.30 |
Ios 화면터치 keyboard dismiss (0) | 2021.01.28 |