본문 바로가기

멋있게걷는방법

검색하기
멋있게걷는방법
프로필사진 도현D

  • 분류 전체보기 (15)
    • iOS (11)
    • Tuist (3)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
일 월 화 수 목 금 토
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
  • playground
  • Github-Action
  • authentication
  • FlexLayout
  • Tuist
  • rc
  • pagination
  • Swift
  • content-type
  • UITest
  • Xcode
  • App Connect
  • human interface guidelines
  • garbage collection
  • HIG
  • Automatic Reference Count
  • retain cycle
  • Tuist-Action
  • fetchSignInMethods
  • alamofire
  • SPM
  • YGEnums.h
  • HealthKit
  • Firebase
  • layoutSubviews
  • Nan
  • ios
  • 회고
  • arc
  • AppStore
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록layoutSubviews (1)

멋있게걷는방법

[Swift] Override함수에서 Super는 필수일까? (with. layoutSubViews)

기본적으로 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
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바