일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- HIG
- SWIFT
- 스위프트
- 애니메이션
- Refactoring
- Human interface guide
- MVVM
- Xcode
- swift documentation
- tableView
- RxCocoa
- 리펙터링
- rxswift
- 리펙토링
- Protocol
- 클린 코드
- UITextView
- clean architecture
- ios
- Clean Code
- map
- uiscrollview
- ribs
- collectionview
- UICollectionView
- uitableview
- Observable
- combine
- 리팩토링
- swiftUI
- Today
- Total
목록TIME (2)
김종권의 iOS 앱 개발 알아가기
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bcqkNR/btrlU6LDi0z/7ZXIXgYcjC9yME13gO3tz0/img.gif)
1. Timer 구현하기 - UIDatePicker 개념, Timer로 구현 방법 2. Timer 구현하기 - DispatchSourceTimer로 구현 방법 (Background에서도 동작) 3. Timer 구현하기 - CircularProgressBar UI 구현(CAShapeLayer 사용), DispatchSourceTimer와 Timer로 구현 방법 UIDatePicker 4가지 모드 UIDatePicker 인스턴스의 필드값 "datePickerMode" 사용 4가지 종류 time date dateAndTime countDownTimer UIDatePicker 입력 값 얻는 방법 > .valueChanged 이벤트를 받아서, dataPicker.date로 값 접근 datePickerMode = ..
초 정보 -> 시, 분 표현 TimeParts 구조체 정의 public struct TimeParts: CustomStringConvertible { public var hours = 0 public var minutes = 0 public var description: String { return NSString(format: "%02d:%02d", hours, minutes) as String } } Int를 extension하여 TimeParts 모델을 리턴하는 코드 정의 extension Int { public func toTimeParts() -> TimeParts { let seconds = self let mins = (seconds % 3600) / 60 let hours = seconds..