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
- SPM
- Github-Action
- pagination
- alamofire
- Tuist-Action
- Tuist
- HIG
- Nan
- garbage collection
- HealthKit
- fetchSignInMethods
- Swift
- retain cycle
- layoutSubviews
- Firebase
- Automatic Reference Count
- human interface guidelines
- ios
- arc
- AppStore
- rc
- App Connect
- FlexLayout
- authentication
- UITest
- 회고
- YGEnums.h
- playground
- Xcode
- content-type
Archives
- Today
- Total
목록layoutSubviews (1)
멋있게걷는방법

기본적으로 super 키워드는 상위 뷰를 호출합니다. 예를 들어볼게요. class A: UITableViewCell { override func layoutSubviews() { super.layoutSubviews() } } 만약 제가 UITableViewCell을 상속하고 있는 A라는 클래스에 있는 layoutSubview override 함수에서 super를 통해 super.layoutSubviews()를 호출했다면 어떤 뷰가 실행될까요? super는 상위 뷰를 호출한다고 했죠? 현재 상속 중인 클래스는 UITableViewCell입니다. 그럼 호출되는 건 UITableView의 상위 뷰인 UIView의 layoutSubviews가 호출되겠죠! super 가 뭘 하는 녀석인 줄은 알고 있었지만 이렇..
iOS
2023. 7. 2. 02:28