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
- map
- 스위프트
- rxswift
- MVVM
- Refactoring
- Protocol
- SWIFT
- 리펙토링
- UITextView
- 클린 코드
- Observable
- Human interface guide
- uiscrollview
- UICollectionView
- ribs
- swift documentation
- tableView
- Clean Code
- combine
- swiftUI
- clean architecture
- uitableview
- 리팩토링
- 리펙터링
- collectionview
- ios
- RxCocoa
- 애니메이션
- Xcode
- HIG
Archives
- Today
- Total
목록downcasting (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift 공식 문서] 18. Type Casting (타입 캐스팅, 다운캐스팅, 업캐스팅)
Type Casting instance의 유형을 확인하거나 해당 instance를 자체 클래스 계층 구조에서 superclass또는 subclass로 처리하는 방법 연산자는 두가지: is와 as Type 확인 is연산자 사용: 좌측엔 instance, 우측엔 type class MediaItem { var name: String init(name: String) { self.name = name } } class Movie: MediaItem { var director: String init(name: String, director: String) { self.director = director super.init(name: name) } } class Song: MediaItem { var artist..
swift 공식 문서
2021. 7. 15. 22:15