
Timers 타이머를 구현하려면 아래와 같은 방법이 있습니다. RunLoop Timer class DispatchQueue RunLoop NOTE Apple 공식문서에서 RunLoop 클래스는 thread safe 하지 않아, 현재 thread에서만 RunLoop 메서드를 호출해야 한다고 합니다. 아래는 RunLoop를 활용해 1초마다 print를 하는 timer를 만든 예제 입니다. import Foundation let runLoop = RunLoop.main let subscription = runLoop.schedule( after: runLoop.now, interval: .seconds(1), tolerance: .milliseconds(100)) { print("Timer fired") }..
iOS
2023. 1. 8. 01:03
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- Swift 내림차순
- RTCCameraVideoCapturer
- Swift ModernRIBs
- Swift RIBs
- Swift inout
- iOS error
- 원티드 프리온보딩
- Swift 프로그래머스
- swift 고차함수
- Swift Error Handling
- CS 네트워크
- swift protocol
- swift programmers
- Combine: Asynchronous Programming with Swift
- swift reduce
- swift (programmers)
- 2023년 회고
- Swift init
- Class
- removeLast()
- Swift final
- Swift
- Swift 알고리즘
- swift property
- Swift joined
- Swift 프로퍼티
- Swift joined()
- RIBs tutorial
- ios
- Swift Leetcode
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함