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
- segue
- indexoutofrange
- viewlifecycle
- SWIFTUI
- class
- 글또
- struct
- NotificationCenter
- PushNotification
- uikit
- Git
- 회고
- Switch
- error
- stateobject
- static binding
- IOS
- nsurlerrordomain
- 화면전환
- http
- apns
- self
- lazyvstack
- ScrollView
- list
- SWIFT
- uicollectionviewlayout
- escaping
- 고차함수
- protocol
Archives
- Today
- Total
목록dispatchsouretimer (1)
seong_hye, the developer
Swift) DispatchSourceTimer이란?
📘 Swift) DispatchSoureTimer알람 앱을 사용하다보면 백그라운드에 있어도 타이머가 잘 진행되는 모습을 볼 수 있다이번에는 그렇게 백그라운드에서 실행될 수 있는 타이머에 대해 알아보자 🔹 문법 설명 GCD(Grand Central Dispatch) 기반으로 정밀하고 효율적인 타이머를 만들 수 있게 해주는 객체Timer보다 더 낮은 수준에서 제어 가능 백그라운드에서 안정적으로 동작반복주기, 시작 시점, 허용 오차 등을 세밀하게 조절 가능🔹 주요 구성 요소구성설명DispatchSource.makeTimerSource(queue:)타이머 생성, 큐는 실행할 대상 지정schedule(deadline:repeating:leeway:)시작 시점, 반복 주기, 허용 오차setEventHandle..
IOS
2022. 8. 2.