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
- combine
- 리펙터링
- Clean Code
- collectionview
- 리펙토링
- 애니메이션
- HIG
- clean architecture
- swiftUI
- Observable
- SWIFT
- ios
- 리팩토링
- MVVM
- map
- 클린 코드
- tableView
- rxswift
- UITextView
- UICollectionView
- Xcode
- swift documentation
- Protocol
- Human interface guide
- 스위프트
- uitableview
- ribs
- uiscrollview
- Refactoring
- RxCocoa
Archives
- Today
- Total
목록format (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] 시간 정보 format (시, 분, 초)
초 정보 -> 시, 분 표현 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..
iOS 응용 (swift)
2021. 2. 9. 22:56