tableView section headers disappear SWIFT

前端 未结 6 1404
慢半拍i
慢半拍i 2020-12-13 18:01

I have a tableView set up so that when a cell is touched, it expands in height to reveal more information. The tableView has 5 sections.

I have a bug: when a cell e

6条回答
  •  不思量自难忘°
    2020-12-13 18:23

    Table view headers in 2 tables disappeared when I converted my app to IOS 10 - I found the reason in Apple developer API documentation on table headers. When I added the following, the missing headers reappeared!

    override func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat
    {
    return 44 // where 44 is the header cell view height in my storyboard
    }
    

提交回复
热议问题