Skip to content

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

@iznv

Description

@iznv

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()
    }

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions