1. 테이블 뷰 행 높이 automaticDimension 으로 설정.
self.tableView.rowHeight = UITableView.automaticDimension
2. 예상되는 rowHeight 값 지정.
self.tableView.estimatedRowHeight = 80
3. Cell 내의 각 요소들의 Constraints를 적절히 지정해야 한다.
'iOS > Swift' 카테고리의 다른 글
| UIWebView 와 WKWebView 차이 (0) | 2021.12.12 |
|---|---|
| [Swift] Array, Dictionary, Set, Tuple (0) | 2021.12.12 |
| [Swift] 메모리를 참조하는 방법 (Strong, Weak, Unowned) (1) | 2020.07.30 |
| [Swift] Type Casting (0) | 2020.07.29 |
| [Swift] Closure (0) | 2020.07.29 |