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 |
Tags
- 클린 코드
- 리펙토링
- UICollectionView
- Refactoring
- MVVM
- Human interface guide
- uitableview
- UITextView
- Xcode
- rxswift
- swiftUI
- 리팩토링
- 리펙터링
- clean architecture
- combine
- map
- uiscrollview
- 스위프트
- ios
- Clean Code
- 애니메이션
- Observable
- Protocol
- collectionview
- ribs
- SWIFT
- RxCocoa
- tableView
- swift documentation
- HIG
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