extension UITableView {
func removeExcessCells() {
tableFooterView = UIView(frame: .zero)
}
}
By applying this code, you can make your tableview look like following pictures.
'Programming > Swift' 카테고리의 다른 글
[iOS Dev Tip] Status bar color (0) | 2021.09.03 |
---|---|
[Readable Coding Practice] How to make swiping view controller with swiping menu tab bar (0) | 2021.08.01 |
[Readable Code Practice] tableView Cell slide and delete (0) | 2021.06.28 |
[Readable Coding Practice] Show and dismiss loading signals (0) | 2021.06.19 |
[Readable Coding Practice] UIScrollView Pagination (0) | 2021.06.19 |