Skip to content

Crash on -[UITableView _configureCellForDisplay:forIndexPath:] #27

Description

@bb-git

Some of my users eperience a crash here. This normally happens, when the cell is nil. But this is not possible as tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath) always returns a cell. This only happens since I started using HVTableView. What could be the reason?

Here is the error message:

Fatal Exception: NSInternalInconsistencyException
UITableView (<HVTableView: 0x106088e00; baseClass = UITableView; frame = (0 0; 375 574); clipsToBounds = YES; autoresize = RM+BM; tintColor = UIExtendedSRGBColorSpace 0 0 0 0; gestureRecognizers = <NSArray: 0x1c025daf0>; layer = <CALayer: 0x1c0220440>; contentOffset: {0, 0}; contentSize: {375, 3779}; adjustedContentInset: {0, 0, 0, 0}>) failed to obtain a cell from its dataSource (<HVTableView: 0x106088e00; baseClass = UITableView; frame = (0 0; 375 574); clipsToBounds = YES; autoresize = RM+BM; tintColor = UIExtendedSRGBColorSpace 0 0 0 0; gestureRecognizers = <NSArray: 0x1c025daf0>; layer = <CALayer: 0x1c0220440>; contentOffset: {0, 0}; contentSize: {375, 3779}; adjustedContentInset: {0, 0, 0, 0}>)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions