티스토리 뷰
override func viewWillAppear(_ animated: Bool) {
// footer 추가해서 empty table view cell들 보이지 않게 하기
faqTableView.tableFooterView = UIView.init(frame: .zero)
}
UIKit은 원래, 테이블 뷰에 table Footer View가 있으면 빈 셀들을 생성하지 않는다고 한다.
그래서 우리는 높이 0짜리 view를 만들어서, footer로 쓰게 한다.
'macOS, iOS' 카테고리의 다른 글
[iOS] textfield 키보드 내릴 때 (0) | 2019.09.20 |
---|---|
table view separator(나눠주는 선) 꽉 차게 하기 (0) | 2019.09.20 |
static func 란? (0) | 2019.09.11 |
email regex (0) | 2019.09.11 |
do try catch in swift (0) | 2019.09.10 |