UITableView 구조
Cell 자체는 ‘Delete Control - Content - Accessory View’의 구조로 되어 있다.
자세한 내용은 이전에 정리한 내용 참조
그렇다면 UITableView는 어떤 구조로 되어있을까?
- ContentView - BackgroundView - SelectedBackgroundView - MultipleSelectionBackgroundView로 구성되어 있다.
contentView (= UIView)
contentView는 공식문서를 정리한 내용은 아래를 참조하면 될 것 같다.
이전에 정리한 내용을 참조
BackgroundView ( = UIView? )
backgroundView는 공식문서에서 다음과 같이 설명한다.
- Cell의 background로 사용하기 위한 view
- UITableViewCell은 다른 모든 뷰 뒤에 subView로서 backgroundView를 추가하고, backgroundView의 현재 프레임 위치를 사용한다.
- 여러 줄 선택은 allowsMultipleSelection과 allowsMultiplesSelectionDuringEditing property를 통해 가능하다.
- backgroundConfiguration과 병행 사용 불가.