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