Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- Refactoring
- uitableview
- Protocol
- UITextView
- Xcode
- tableView
- UICollectionView
- clean architecture
- Clean Code
- 애니메이션
- 스위프트
- ios
- 리펙토링
- SWIFT
- Observable
- HIG
- RxCocoa
- rxswift
- MVVM
- swiftUI
- 리펙터링
- Human interface guide
- 클린 코드
- combine
- ribs
- collectionview
- swift documentation
- uiscrollview
- 리팩토링
- map
Archives
- Today
- Total
목록2024/10/07 (1)
김종권의 iOS 앱 개발 알아가기

DispatchQueue 작업 취소, 예약 방법5초 후에 특정 작업을 수행하고 싶은 경우?보통은 DispatchQueue 사용DispatchQueue.main.asyncAfter(deadline: .now() + 5) { // some task...}5초 후에 특정 작업을 수행하려고 하지만, 중간에 버튼을 누르면 이 작업을 취소하고 싶은 경우?DispatchSourceTimer 사용DispatchSourceTimer 개념타이머를 설정해놓고 특정 작업을 setEventHandler 클로저로 실행시킬 수 있는 기능이것을 사용하면 작업을 등록해놓고 cancel, pause 모두 다 가능DispatchSourceTimer 사용 방법인스턴스 하나를 두고 cancel(), pause()할 수 있도록 전역으로 ..
iOS 응용 (swift)
2024. 10. 7. 01:48