maxsokolov / TableKit

Type-safe declarative table views.
MIT License
706 stars 74 forks source link

Crash on reload of empty table if tableView contains tableHeaderView | iOS 10.3.1 #88

Closed iznv closed 5 years ago

iznv commented 5 years ago

On iOS 12 no crashes.

Code to reproduce the issue:

class ViewController: UIViewController {

    private let tableView = UITableView()

    lazy var tableDirector = TableDirector(tableView: tableView)

    override func loadView() {
        view = tableView
    }

    override func viewDidLoad() {
        super.viewDidLoad()

        tableView.tableHeaderView = UIView()

        tableDirector.clear()
        tableDirector.reload()
    }

}
maxsokolov commented 5 years ago

Hey @iznv

I was able to reproduce this crash. Fix is in master 2.8.1

Thanks!